fix/miglioria linkup
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ def find_in_text(regex, text, flags=re.IGNORECASE | re.DOTALL):
|
|||||||
|
|
||||||
|
|
||||||
class UnshortenIt(object):
|
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'
|
_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'
|
_adfocus_regex = r'adfoc\.us'
|
||||||
_lnxlu_regex = r'lnx\.lu'
|
_lnxlu_regex = r'lnx\.lu'
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
|||||||
|
|
||||||
patronvideos = [
|
patronvideos = [
|
||||||
r'(https?://(gestyy|rapidteria|sprysphere)\.com/[a-zA-Z0-9]+)',
|
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\.)?(bit|buckler)\.[^/]+/[a-zA-Z0-9]+)',
|
||||||
r'(https?://(?:www\.)?(xshield)\.[^/]+/[^/]+/[^/]+/[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/')
|
url = url.replace('/tv/','/tva/')
|
||||||
elif 'delta' in url:
|
elif 'delta' in url:
|
||||||
url = url.replace('/delta/','/adelta/')
|
url = url.replace('/delta/','/adelta/')
|
||||||
if '/olink/' in url: continue
|
elif '/ga/' in url:
|
||||||
|
import base64
|
||||||
|
url = base64.b64decode(url.split('/')[-1]).strip()
|
||||||
else:
|
else:
|
||||||
idata = httptools.downloadpage(url).data
|
idata = httptools.downloadpage(url).data
|
||||||
data = scrapertools.find_single_match(idata, "<iframe[^<>]*src=\\'([^'>]*)\\'[^<>]*>")
|
url = scrapertools.find_single_match(idata, "<iframe[^<>]*src=\\'([^'>]*)\\'[^<>]*>")
|
||||||
#fix by greko inizio
|
#fix by greko inizio
|
||||||
if not data:
|
if not url:
|
||||||
data = scrapertools.find_single_match(idata, 'action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">')
|
url = scrapertools.find_single_match(idata, 'action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">')
|
||||||
from lib import unshortenit
|
from lib import unshortenit
|
||||||
data, status = unshortenit.unshorten(url)
|
data, status = unshortenit.unshorten(url)
|
||||||
# logger.info("Data - Status zcrypt linkup : [%s] [%s] " %(data, status))
|
short = scrapertools.find_single_match(data, '^https?://.*?(https?://.*)')
|
||||||
data = httptools.downloadpage(data, follow_redirect=True).url
|
if short:
|
||||||
|
data = short
|
||||||
if '/speedx/' in data: # aggiunto per server speedvideo
|
if '/speedx/' in data: # aggiunto per server speedvideo
|
||||||
data = data.replace('http://linkup.pro/speedx', 'http://speedvideo.net')
|
data = data.replace('http://linkup.pro/speedx', 'http://speedvideo.net')
|
||||||
# fix by greko fine
|
# fix by greko fine
|
||||||
|
|||||||
Reference in New Issue
Block a user