Prova streamtape

This commit is contained in:
marco
2023-04-11 20:55:12 +02:00
parent ae162428ce
commit 59ebb49d6a

View File

@@ -31,6 +31,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
logger.debug("url=" + page_url)
video_urls = []
find_url = match(data, patron=r'innerHTML = ([^;]+)').matches[-1]
find_url.replace('"', "'")
logger.debug(find_url)
possible_url = js2py.eval_js(find_url)
url = "https:" + possible_url
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")