aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.py b/server.py
index a7a3fc8..e456e3c 100644
--- a/server.py
+++ b/server.py
@@ -41,6 +41,9 @@ def proxy_site(env, start_response, video=False):
headers['Range'] = env['HTTP_RANGE']
url = "https://" + env['SERVER_NAME'] + env['PATH_INFO']
+ # remove /name portion
+ if video and '/videoplayback/name/' in url:
+ url = url[0:url.rfind('/name/')]
if env['QUERY_STRING']:
url += '?' + env['QUERY_STRING']