Force the protocol to lowercase

This commit is contained in:
angelblue05 2018-01-27 22:25:32 -06:00
parent 7ad40e4553
commit cf31fbba45

View file

@ -402,4 +402,9 @@ class API(object):
# Local path scenario, with special videotype
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