Fix unshortenit + nuovo path per mixdrop

This commit is contained in:
Alhaziel01
2021-06-01 19:09:21 +02:00
parent 06a8ca1a27
commit b646f4bbbc
2 changed files with 3 additions and 1 deletions

View File

@@ -556,6 +556,8 @@ class UnshortenIt(object):
# fix by greko inizio
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="([^"]+)')
if link:
uri = link
short = re.findall('^https?://.*?(https?://.*)', uri)