From 8a83eb9b5bd9340e4a6d303fc1d7799f9fb7a18a Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 6 Sep 2013 10:01:16 +1200 Subject: [PATCH] Removed references to a function in spotify.py that doesn't exist --- plugins/lyrics.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/lyrics.py b/plugins/lyrics.py index 72a8351..6a226e8 100644 --- a/plugins/lyrics.py +++ b/plugins/lyrics.py @@ -1,5 +1,4 @@ from util import hook, http, web -from spotify import spotifyfunc as spotify url = "http://search.azlyrics.com/search.php?q=" @@ -33,16 +32,12 @@ def lyrics(inp): else: pasteurl = "" artist = div.find('b').text.title() - try: - spurl = " (Spotify: http://" + spotify(title + " " + artist).split("http://")[1].split("\x02")[0] + ")" - except: - spurl = "" lyricsum = div.find('div').text if "\r\n" in lyricsum.strip(): lyricsum = " / ".join(lyricsum.strip().split("\r\n")[0:4]) # truncate, format else: lyricsum = " / ".join(lyricsum.strip().split("\n")[0:4]) # truncate, format - return "\x02{}\x02 by \x02{}\x02 {}{}{} - {}".format(title, artist, web.try_isgd(link), spurl, pasteurl, + return "\x02{}\x02 by \x02{}\x02 {}{} - {}".format(title, artist, web.try_isgd(link), pasteurl, lyricsum[:-3]) else: return "No song results. " + url + inp.replace(" ", "+")