Fix unshortenit + nuovo path per mixdrop

This commit is contained in:
Alhaziel01
2021-06-01 19:09:21 +02:00
parent 8bab7f5b93
commit 1856fb9ea5
2 changed files with 3 additions and 1 deletions
+2
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)