From cf31fbba45e851fafe2512d19a2154921a0be869 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 27 Jan 2018 22:25:32 -0600 Subject: [PATCH] Force the protocol to lowercase --- resources/lib/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/api.py b/resources/lib/api.py index 9ce8083b..3c8952b0 100644 --- a/resources/lib/api.py +++ b/resources/lib/api.py @@ -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