diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-09-22 20:59:20 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-09-22 20:59:20 -0700 |
commit | 5f5034e826eb98e730ac0cb357f4236982988053 (patch) | |
tree | e2a61612fb17c1d0f933bac9da1018997a71bdb0 /server.py | |
parent | 09e988818240ad552397a868d9ed8e444877a5cb (diff) | |
download | yt-local-5f5034e826eb98e730ac0cb357f4236982988053.tar.lz yt-local-5f5034e826eb98e730ac0cb357f4236982988053.tar.xz yt-local-5f5034e826eb98e730ac0cb357f4236982988053.zip |
Increase max redirects for video routing
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -46,7 +46,11 @@ def proxy_site(env, start_response, video=False): if video and settings.route_tor == 1: response, cleanup_func = util.fetch_url_response(url, headers, - use_tor=False) + use_tor=False, + max_redirects=10) + elif video: + response, cleanup_func = util.fetch_url_response(url, headers, + max_redirects=10) else: response, cleanup_func = util.fetch_url_response(url, headers) |