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
+3 -4
View File
@@ -22,11 +22,10 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug(" url=" + page_url)
video_urls = []
global data
vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
# vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
# if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
data_pack = scrapertools.find_single_match(data, "</div>\n\s*<script[^>]+>(eval.function.p,a,c,k,e,.*?)\s*</script>")
if data_pack != "":
@@ -36,4 +35,4 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
_headers = urllib.urlencode(httptools.default_headers)
video_urls = support.get_jwplayer_mediaurl(data, 'dropload')
return sorted(video_urls, key=lambda x: int(x[0].split('x')[0])) if vres else video_urls
return video_urls