Update maxstream.py

This commit is contained in:
mac12m99
2021-11-04 18:31:32 +01:00
committed by GitHub
parent b43520223d
commit 818a423dc9

View File

@@ -23,7 +23,7 @@ def test_video_exists(page_url):
id = httptools.downloadpage(page_url, follow_redirects=False, cloudscraper=True).headers.get('location').split('/')[-1]
else:
id = page_url.split('/')[-1]
page_url = 'http://lozioangie.altervista.org/max_anticaptcha.php?id=' + id
page_url = requests.head('http://lozioangie.altervista.org/max_anticaptcha.php?id=' + id).headers.get('location')
data = httptools.downloadpage(page_url, cloudscraper=True).data
if scrapertools.find_single_match(data, '(?<!none);[^>]*>file was deleted'):