From 607e720a71952532fd1a5686ba6f245814cefff4 Mon Sep 17 00:00:00 2001 From: greko17 Date: Fri, 27 Sep 2019 19:20:52 +0200 Subject: [PATCH] fix: lib/unshortenit.py e aggiunto url larati.net --- lib/unshortenit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index 6eba138c..cd1c82bf 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' + _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' _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' @@ -482,7 +482,7 @@ class UnshortenIt(object): for p in range(0, len(decoded), 16): decrypted += crypt_object.decrypt(decoded[p:p + 16]).replace('\0', '') return decrypted - if '/shield' in uri: + if 'shield' in uri.split('/')[-2]: uri = decrypt(uri.split('/')[-1]) else: import datetime, hashlib @@ -524,4 +524,4 @@ def unshorten(uri, type=None, timeout=10): uri, status = unshortener.unshorten(uri, type=type) if status == 200: uri, status = unshortener.unwrap_30x(uri, timeout=timeout) - return uri, status \ No newline at end of file + return uri, status