Fix dropload, filmpertutti (sezione aggiornamenti), disattivato filmstreaming (da errore anche da browser)
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user