fix buckler.link, novità tantifilm

This commit is contained in:
mac12m99
2021-06-05 17:13:00 +02:00
parent 16272a5133
commit a3dac09a86
3 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ class UnshortenIt(object):
if not link:
link = re.findall('action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">', r.data)
if not link:
link = scrapertools.find_single_match(r.data, r'a href="([^"]+)')
link = scrapertools.find_single_match(r.data, '\$\("a\.redirect"\)\.attr\("href",\s*"(http[^"]+)')
if link:
uri = link
short = re.findall('^https?://.*?(https?://.*)', uri)