Fix streamtape, filmpertutti->aggiornamenti

This commit is contained in:
mac12m99
2021-08-14 19:19:31 +02:00
parent 1747d75f92
commit 6d2760278c
3 changed files with 6 additions and 8 deletions
+4 -6
View File
@@ -27,17 +27,15 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug("url=" + page_url)
# from core .support import dbg;dbg()
video_urls = []
possible_url = ''
find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"]([^"']+))?''').match
for m in find_url:
possible_url += m
find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"(]+([^"']+))?''').match
possible_url = find_url[0]
possible_url += find_url[1][2:]
if not possible_url:
possible_url = match(data, patron=r"innerHTML\\'\]=\\'([^']+)").match
url = "https:" + possible_url
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
video_urls.append(['MP4 [Streamtape]', url])
return video_urls
return video_urls