From e03280740f44c8aac1f15bc69ae25179ad9d63e9 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 11 May 2021 15:38:57 +0200 Subject: [PATCH] remove debug print --- stream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stream.py b/stream.py index 9670567..db7621f 100755 --- a/stream.py +++ b/stream.py @@ -117,7 +117,6 @@ def rewrite(current, provider, proxy): ndata = "" presp = requests.post(proxy_server, json=links) if isinstance(presp.text, str): - print(presp.text) links = json.loads(presp.text) for line in resp.text.splitlines(): if line.startswith("#EXT-X-KEY:METHOD="): @@ -173,7 +172,7 @@ class MainHandler(tornado.web.RequestHandler): if isinstance(proxy_list, list): for proxy_temp in proxy_list: try: - resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=(1, 2)) + resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=(0.1, 2.0)) if resp is not None: src = resp.url except Exception as e: