mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Force the protocol to lowercase
This commit is contained in:
parent
7ad40e4553
commit
cf31fbba45
1 changed files with 5 additions and 0 deletions
|
@ -402,4 +402,9 @@ class API(object):
|
||||||
# Local path scenario, with special videotype
|
# Local path scenario, with special videotype
|
||||||
filepath = filepath.replace("/", "\\")
|
filepath = filepath.replace("/", "\\")
|
||||||
|
|
||||||
|
if "://" in filepath:
|
||||||
|
# Protocol needs to be lowercase, otherwise weird things happen.
|
||||||
|
protocol = filepath.split('://')[0]
|
||||||
|
filepath = filepath.replace(protocol, protocol.lower())
|
||||||
|
|
||||||
return filepath
|
return filepath
|
||||||
|
|
Loading…
Reference in a new issue