From c5474c839b6b72f2d726e33d5870e5deca18061f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 7 Jun 2021 18:29:15 +0200 Subject: [PATCH] Fix unshorten linkup --- lib/unshortenit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index a748ed01..a21783df 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -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, '\$\("a\.redirect"\)\.attr\("href",\s*"(http[^"]+)') + link = scrapertools.find_single_match(r.data, '\$\("a\.redirect"\)\.attr\("href",\s*"\s*(http[^"]+)') if link: uri = link short = re.findall('^https?://.*?(https?://.*)', uri)