risoluzioni in ordine per download a qualità massima

This commit is contained in:
Alhaziel
2019-11-20 21:16:15 +01:00
committed by marco
parent 87122f99c4
commit de759e2310
22 changed files with 87 additions and 48 deletions
+2 -2
View File
@@ -48,9 +48,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