From 860ef01776573ea7935581edbcd65694c13f1416 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Thu, 11 Apr 2019 00:01:44 -0400 Subject: [PATCH] strip google redirects --- Lyrics/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lyrics/plugin.py b/Lyrics/plugin.py index 78eafff..90f1635 100644 --- a/Lyrics/plugin.py +++ b/Lyrics/plugin.py @@ -38,6 +38,7 @@ class Lyrics(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) title = soup.find("h3").getText() except Exception: return