remove debug print
This commit is contained in:
parent
82c6b57907
commit
e03280740f
@ -117,7 +117,6 @@ def rewrite(current, provider, proxy):
|
|||||||
ndata = ""
|
ndata = ""
|
||||||
presp = requests.post(proxy_server, json=links)
|
presp = requests.post(proxy_server, json=links)
|
||||||
if isinstance(presp.text, str):
|
if isinstance(presp.text, str):
|
||||||
print(presp.text)
|
|
||||||
links = json.loads(presp.text)
|
links = json.loads(presp.text)
|
||||||
for line in resp.text.splitlines():
|
for line in resp.text.splitlines():
|
||||||
if line.startswith("#EXT-X-KEY:METHOD="):
|
if line.startswith("#EXT-X-KEY:METHOD="):
|
||||||
@ -173,7 +172,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
if isinstance(proxy_list, list):
|
if isinstance(proxy_list, list):
|
||||||
for proxy_temp in proxy_list:
|
for proxy_temp in proxy_list:
|
||||||
try:
|
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:
|
if resp is not None:
|
||||||
src = resp.url
|
src = resp.url
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user