Fix altaCommunity e aggiungi alla videoteca con autoplay attivo su alcuni canali

This commit is contained in:
mac12m99
2021-09-06 20:38:19 +02:00
parent b21f957c08
commit 3a1e3a228b
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -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, ""