Put vid title at end of download urls so downloads w/ that filename

This commit is contained in:
James Taylor
2020-10-22 14:30:33 -07:00
parent f8b6db1480
commit 5f4884dce8
3 changed files with 68 additions and 0 deletions

View File

@@ -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']