fix nored.icu e netfreex

This commit is contained in:
marco
2020-08-30 17:38:19 +02:00
parent 73589bb775
commit 83485bbdc8
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def test_video_exists(page_url):
headers = [['User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'],
['Host', scrapertools.get_domain_from_url(page_url)]]
if 'nored.icu' in str(headers): real_host = 'wstream.video'
# if 'nored.icu' in str(headers): real_host = 'wstream.video'
logger.log("(page_url='%s')" % page_url)
resp = httptools.downloadpage(page_url, headers=headers, verify=False)