Fix unshorten linkup

This commit is contained in:
Alhaziel01
2021-06-07 18:29:15 +02:00
parent 1e7f7d9407
commit c5474c839b
+1 -1
View File
@@ -557,7 +557,7 @@ class UnshortenIt(object):
if not link: if not link:
link = re.findall('action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">', r.data) link = re.findall('action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">', r.data)
if not link: if not link:
link = scrapertools.find_single_match(r.data, '\$\("a\.redirect"\)\.attr\("href",\s*"(http[^"]+)') link = scrapertools.find_single_match(r.data, '\$\("a\.redirect"\)\.attr\("href",\s*"\s*(http[^"]+)')
if link: if link:
uri = link uri = link
short = re.findall('^https?://.*?(https?://.*)', uri) short = re.findall('^https?://.*?(https?://.*)', uri)