some fixes to greko's pull

This commit is contained in:
mac12m99
2019-05-18 14:42:11 +02:00
parent 875205ca83
commit bb62870eda
6 changed files with 21 additions and 124 deletions

View File

@@ -51,10 +51,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
#fix by greko inizio
if not data:
data = scrapertoolsV2.find_single_match(idata, 'action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">')
if '/olink/' in url or '/delta/' in url or '/mango/' in url or '/now/' in url:
from lib import unshortenit
data, status = unshortenit.unshorten(url)
logger.info("Data - Status zcrypt linkup : [%s] [%s] " %(data, status))
from lib import unshortenit
data, status = unshortenit.unshorten(url)
logger.info("Data - Status zcrypt linkup : [%s] [%s] " %(data, status))
# fix by greko fine
else:
data = ""