Risposta server come Dict e modifiche varie

This commit is contained in:
Alhaziel01
2021-08-28 18:10:47 +02:00
parent 8975f950c5
commit 60ec158008
108 changed files with 330 additions and 361 deletions
+2 -2
View File
@@ -24,6 +24,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
patron += '"src":"(http.*?)".*?'
matches = scrapertools.find_multiple_matches(data, patron)
for label, url in matches:
video_urls.append(['%s [dostream]' %label, url])
video_urls.sort(key=lambda it: int(it[0].split("p ")[0]))
video_urls.append({'type':label, 'url':url})
# video_urls.sort(key=lambda it: int(it[0].split("p ")[0]))
return video_urls