diff --git a/IMDB/plugin.py b/IMDB/plugin.py index ce427c0..ab31ef8 100644 --- a/IMDB/plugin.py +++ b/IMDB/plugin.py @@ -39,8 +39,9 @@ class IMDB(callbacks.Plugin): soup = BeautifulSoup(data.text) elements = soup.select('.r a') url = elements[0]['href'] - url = re.sub("http://www.google.com/url?url=", "", url) + url = re.split('https?://', url)[-1] url = re.sub("&rct=.*", "", url) + url = "https://{0}".format(url) except Exception: return else: