Fix altaCommunity e streamtape

This commit is contained in:
mac12m99
2021-09-07 20:54:10 +02:00
parent 3a1e3a228b
commit edd984555b
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ def test_video_exists(page_url):
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 = ([^;]+)').match
find_url = match(data, patron=r'innerHTML = ([^;]+)').matches[-1]
possible_url = js2py.eval_js(find_url)
url = "https:" + possible_url
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")