Fix dropload, filmpertutti (sezione aggiornamenti), disattivato filmstreaming (da errore anche da browser)

This commit is contained in:
marco
2022-12-03 14:58:49 +01:00
parent 5c56c5e1ec
commit 17f8cab8d7
6 changed files with 13 additions and 11 deletions

View File

@@ -121,7 +121,7 @@ class UnshortenIt(object):
logger.info(uri)
if originalUri == uri and logger.testMode:
if originalUri == uri and logger.testMode and code != 404:
raise Exception('Not un-shortened link: ' + uri)
return uri, code
@@ -507,6 +507,8 @@ class UnshortenIt(object):
html = r.data
uri = re.findall(r'<iframe\s+src="([^"]+)', html)[0]
if not uri and 'Questo video è in conversione' in html:
return uri, 404
return uri, r.code