From ed7df80ea3ff35da236bd662eacafe60e30eeec9 Mon Sep 17 00:00:00 2001 From: ilmich Date: Sat, 6 Apr 2024 17:40:57 +0200 Subject: [PATCH] fix domain --- lib/unshortenit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index fa73465e..064af6d7 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -529,6 +529,8 @@ class UnshortenIt(object): def _unshorten_staycheck(self, uri): r = httptools.downloadpage(uri, follow_redirects=True, timeout=self._timeout, cookies=False) match = scrapertools.find_single_match(r.data,'let destination = \'([^\']+)') + if not match: + match = scrapertools.find_single_match(r.data,'.*[Cc.*Oo.*Nn.*Tt.*Ii.*Nn.*Uu.*Aa.*].*') return match + urlparse(uri).query, 200 def _unshorten_safego(self, uri):