Fix Akstream Wstream (risoluzioni in ordine)

This commit is contained in:
Alhaziel
2019-11-16 15:36:48 +01:00
parent 99328cae74
commit 5ecb4e0f0e
2 changed files with 3 additions and 4 deletions

View File

@@ -41,5 +41,4 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
for video_url in video_urls:
logger.info(" %s - %s" % (video_url[0], video_url[1]))
return video_urls
return sorted(video_urls, key=lambda x: x[0].split('x')[1])

View File

@@ -45,9 +45,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
for key in keys:
video_urls.append(['%s [%sp]' % (key['type'].replace('video/',''), key['label']), key['src'].replace('https','http') + '|' + _headers])
else:
media_urls = scrapertools.find_multiple_matches(data, '(http.*?\.mp4)')
media_urls = scrapertools.find_multiple_matches(data, r'(http.*?\.mp4)')
for media_url in media_urls:
video_urls.append(['video' + " mp4 [wstream] ", media_url + '|' + _headers])
video_urls.sort(key=lambda x: x[0])
return video_urls