fix mixdrop and supervideo

This commit is contained in:
ilmich
2024-03-05 21:06:09 +01:00
parent a172fe86f3
commit 3a183b82f8
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ def test_video_exists(page_url):
global data
data = httptools.downloadpage(page_url).data
if "<h2>WE ARE SORRY</h2>" in data or "<h2>ALMOST THERE</h2>" in data or '<title>404 Not Found</title>' in data:
if "<h2 style=\"color:#068af0\">WE ARE SORRY</h2>" in data or "<h2 style=\"color:#068af0\">ALMOST THERE</h2>" in data or '<title>404 Not Found</title>' in data:
return False, config.get_localized_string(70449) % "MixDrop"
if 'window.location' in data:

View File

@@ -27,7 +27,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
# data = httptools.downloadpage(page_url).data
global data
code_data = scrapertools.find_single_match(data, """<script type=["']text/javascript["']>(eval.*)""")
code_data = scrapertools.find_single_match(data, """<script type=["'].*text/javascript["']>(eval.*)""")
if code_data:
code = jsunpack.unpack(code_data)