Fix altaCommunity e aggiungi alla videoteca con autoplay attivo su alcuni canali
This commit is contained in:
@@ -18,9 +18,10 @@ def test_video_exists(page_url):
|
||||
|
||||
referer = {"Referer": page_url}
|
||||
|
||||
data = httptools.downloadpage(page_url, headers=referer).data
|
||||
page = httptools.downloadpage(page_url, headers=referer)
|
||||
data = page.data
|
||||
|
||||
if "Video not found" in data:
|
||||
if "Video not found" in data or page.code >= 400:
|
||||
return False, config.get_localized_string(70449) % 'Streamtape'
|
||||
|
||||
return True, ""
|
||||
|
||||
Reference in New Issue
Block a user