- Fix AltadefinizioneCommunity

- Fix HDmario e Streamtape
This commit is contained in:
Alhaziel01
2021-10-01 09:41:31 +02:00
parent 5348eebe19
commit 003f3905f0
4 changed files with 28 additions and 18 deletions
+2 -1
View File
@@ -106,6 +106,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
global page, data
page_url = page_url.replace('?', '')
logger.debug("url=" + page_url)
logger.dbg()
if 'unconfirmed' in page.url:
id = page_url.split('/')[-1]
@@ -132,7 +133,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
logger.debug(data)
from lib import jsunpack_js2py
unpacked = jsunpack_js2py.unpack(scrapertools.find_single_match(data, '<script type="text/javascript">\n*\s*\n*(eval.*)'))
unpacked = jsunpack_js2py.unpack(scrapertools.find_single_match(data, '(eval.*?)</'))
# p,a,c,k,e,d data -> xhr.setRequestHeader
secureProof = scrapertools.find_single_match(unpacked, """X-Secure-Proof['"]\s*,\s*['"]([^"']+)""")
logger.debug('X-Secure-Proof=' + secureProof)
+1 -1
View File
@@ -20,7 +20,7 @@ def test_video_exists(page_url):
data = httptools.downloadpage(page_url, headers=referer).data
if "Video not found" in data:
if "Video not found" in data or 'Streamtape - Error' in data:
return False, config.get_localized_string(70449) % 'Streamtape'
return True, ""