From b646f4bbbcf5cc01f6417ea9c2a036e16a55cb50 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 1 Jun 2021 19:09:21 +0200 Subject: [PATCH] Fix unshortenit + nuovo path per mixdrop --- lib/unshortenit.py | 2 ++ servers/mixdrop.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index ebda0cb9..fdd062e6 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -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) diff --git a/servers/mixdrop.json b/servers/mixdrop.json index dc33cd93..bfa1908d 100644 --- a/servers/mixdrop.json +++ b/servers/mixdrop.json @@ -4,7 +4,7 @@ "ignore_urls": [], "patterns": [ { - "pattern": "mixdrop.[^/]+/(?:f|e)/([a-z0-9]+)", + "pattern": "mixdrop[s]?.[^/]+/(?:f|e)/([a-z0-9]+)", "url": "https://mixdrop.co/e/\\1" } ]