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
+4 -4
View File
@@ -33,10 +33,10 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
data = httptools.downloadpage(page_url, post=post).data
media_url = scrapertools.find_single_match(data, 'name="down_script".*?<a href="([^"]+)"')
ext = scrapertools.get_filename_from_url(media_url)[-4:]
video_urls.append(["%s [userscloud]" % ext, media_url])
ext = scrapertools.get_filename_from_url(media_url).split('.')[-1]
video_urls.append({'type':ext, 'url':media_url})
for video_url in video_urls:
logger.debug("%s - %s" % (video_url[0], video_url[1]))
# for video_url in video_urls:
# logger.debug("%s - %s" % (video_url[0], video_url[1]))
return video_urls