diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-04-05 17:26:48 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-04-05 17:26:48 -0700 |
commit | dd5c9a5d412321bed8e2620a148a1b6fc43fc734 (patch) | |
tree | 9aa983ba1a605e97be64ba2d49c472edce9618cf | |
parent | 4d9d8cec6f7ca18457eec98c4f4894ca4202ae84 (diff) | |
download | yt-local-dd5c9a5d412321bed8e2620a148a1b6fc43fc734.tar.lz yt-local-dd5c9a5d412321bed8e2620a148a1b6fc43fc734.tar.xz yt-local-dd5c9a5d412321bed8e2620a148a1b6fc43fc734.zip |
Fix parameters being ignored in youtu.be links
The parameters weren't passed to the underlying function
-rw-r--r-- | server.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -24,7 +24,10 @@ import re def youtu_be(env, start_response): id = env['PATH_INFO'][1:] env['PATH_INFO'] = '/watch' - env['QUERY_STRING'] = 'v=' + id + if not env['QUERY_STRING']: + env['QUERY_STRING'] = 'v=' + id + else: + env['QUERY_STRING'] += '&v=' + id yield from yt_app(env, start_response) def proxy_site(env, start_response): |