- Fix Altadefinizione Community
- Fix HDMario - Fix Streamtape
This commit is contained in:
@@ -130,9 +130,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
page = httptools.downloadpage(page_url)
|
||||
data = page.data
|
||||
|
||||
logger.debug(data)
|
||||
# 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)
|
||||
|
||||
@@ -21,7 +21,7 @@ def test_video_exists(page_url):
|
||||
page = httptools.downloadpage(page_url, headers=referer)
|
||||
data = page.data
|
||||
|
||||
if "Video not found" in data or page.code >= 400:
|
||||
if "Video not found" in data or page.code >= 400 or 'Streamtape - Error' in data:
|
||||
return False, config.get_localized_string(70449) % 'Streamtape'
|
||||
|
||||
return True, ""
|
||||
|
||||
Reference in New Issue
Block a user