From 72865c2b5838a4b3093f3a14c84b9311e129bcc6 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Sat, 21 Sep 2019 11:46:03 +0200 Subject: [PATCH] Fix Rapidcrypt --- lib/unshortenit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/unshortenit.py b/lib/unshortenit.py index 894b2998..8bb9632b 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -441,15 +441,16 @@ class UnshortenIt(object): return uri, str(e) def _unshorten_rapidcrypt(self, uri): + # import web_pdb; web_pdb.set_trace() try: r = httptools.downloadpage(uri, timeout=self._timeout, cookies=False) html = r.data + html = html.replace("'",'"') if 'embed' in uri: - uri = re.findall(r']*)>', html)[0] + uri = re.findall(r']+)', html)[0] else: - uri = re.findall(r']+)>', html)[0] - + uri = re.findall(r']+)', html)[0] return uri, r.code except Exception as e: