diff --git a/lib/unshortenit.py b/lib/unshortenit.py index f6509c2b..b68c0c71 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -26,7 +26,7 @@ def find_in_text(regex, text, flags=re.IGNORECASE | re.DOTALL): class UnshortenIt(object): - _adfly_regex = r'adf\.ly|j\.gs|q\.gs|u\.bb|ay\.gy|atominik\.com|tinyium\.com|microify\.com|threadsphere\.bid|clearload\.bid|activetect\.net|swiftviz\.net|briskgram\.net|activetect\.net|baymaleti\.net|thouth\.net|uclaut\.net|gloyah\.net|larati\.net' + _adfly_regex = r'adf\.ly|j\.gs|q\.gs|u\.bb|ay\.gy|atominik\.com|tinyium\.com|microify\.com|threadsphere\.bid|clearload\.bid|activetect\.net|swiftviz\.net|briskgram\.net|activetect\.net|baymaleti\.net|thouth\.net|uclaut\.net|gloyah\.net|larati\.net|scuseami\.net' _linkbucks_regex = r'linkbucks\.com|any\.gs|cash4links\.co|cash4files\.co|dyo\.gs|filesonthe\.net|goneviral\.com|megaline\.co|miniurls\.co|qqc\.co|seriousdeals\.net|theseblogs\.com|theseforums\.com|tinylinks\.co|tubeviral\.com|ultrafiles\.net|urlbeat\.net|whackyvidz\.com|yyv\.co' _adfocus_regex = r'adfoc\.us' _lnxlu_regex = r'lnx\.lu' diff --git a/servers/decrypters/zcrypt.py b/servers/decrypters/zcrypt.py index d5181352..e118fb85 100644 --- a/servers/decrypters/zcrypt.py +++ b/servers/decrypters/zcrypt.py @@ -19,7 +19,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= patronvideos = [ r'(https?://(gestyy|rapidteria|sprysphere)\.com/[a-zA-Z0-9]+)', - r'(https?://(?:www\.)?(vcrypt|linkup)\.[^/]+/[^/]+/[a-zA-Z0-9_]+)', + r'(https?://(?:www\.)?(vcrypt|linkup)\.[^/]+/[^/]+/[a-zA-Z0-9_=]+)', r'(https?://(?:www\.)?(bit|buckler)\.[^/]+/[a-zA-Z0-9]+)', r'(https?://(?:www\.)?(xshield)\.[^/]+/[^/]+/[^/]+/[a-zA-Z0-9_\.]+)' ] @@ -61,17 +61,20 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= url = url.replace('/tv/','/tva/') elif 'delta' in url: url = url.replace('/delta/','/adelta/') - if '/olink/' in url: continue + elif '/ga/' in url: + import base64 + url = base64.b64decode(url.split('/')[-1]).strip() else: idata = httptools.downloadpage(url).data - data = scrapertools.find_single_match(idata, "]*src=\\'([^'>]*)\\'[^<>]*>") + url = scrapertools.find_single_match(idata, "]*src=\\'([^'>]*)\\'[^<>]*>") #fix by greko inizio - if not data: - data = scrapertools.find_single_match(idata, 'action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">') + if not url: + url = scrapertools.find_single_match(idata, 'action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">') from lib import unshortenit data, status = unshortenit.unshorten(url) - # logger.info("Data - Status zcrypt linkup : [%s] [%s] " %(data, status)) - data = httptools.downloadpage(data, follow_redirect=True).url + short = scrapertools.find_single_match(data, '^https?://.*?(https?://.*)') + if short: + data = short if '/speedx/' in data: # aggiunto per server speedvideo data = data.replace('http://linkup.pro/speedx', 'http://speedvideo.net') # fix by greko fine