summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index d558165..4dc647e 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -92,7 +92,7 @@ class LyricsWidget(QtGui.QWidget):
self.__text_view.clear()
self.__label.setText('<b>%s</b> by <u>%s</u> on <u>%s</u>'\
- %(song['title'], song['artist'], song['album']))
+ %(song['?title'], song['?artist'], song['?album']))
if lyrics:
self.logger.info('Setting new lyrics.')
self.__text_view.insertPlainText(lyrics)
@@ -150,7 +150,7 @@ class Lyrics(Plugin):
def fetch(self, song):
url = QtCore.QUrl(self.__apiaddress)
- url.setQueryItems([('func', 'getArtist'), ('artist', song['artist']),
+ url.setQueryItems([('func', 'getArtist'), ('artist', song['?artist']),
('fmt', 'xml'), ('action', 'lyrics')])
self.fetch2(song, url)
self.rep.finished.connect(self.__handle_artist_res)
@@ -171,7 +171,7 @@ class Lyrics(Plugin):
url = QtCore.QUrl(self.__apiaddress)
url.setQueryItems([('action', 'lyrics'), ('func', 'getSong'), ('artist', artist),
- ('song', self.song['title']), ('fmt', 'xml')])
+ ('song', self.song['?title']), ('fmt', 'xml')])
self.rep = self.nam.get(QtNetwork.QNetworkRequest(url))
self.rep.finished.connect(self.__handle_search_res)
self.rep.error.connect(self.handle_error)
@@ -212,7 +212,7 @@ class Lyrics(Plugin):
def fetch(self, song):
url = QtCore.QUrl('http://www.animelyrics.com/search.php')
- url.setQueryItems([('t', 'performer'), ('q', song['artist'])])
+ url.setQueryItems([('t', 'performer'), ('q', song['?artist'])])
self.fetch2(song, url)
self.rep.finished.connect(self.__handle_search_res)
@@ -226,7 +226,7 @@ class Lyrics(Plugin):
url = None
for elem in tree.iterfind('.//a'):
- if ('href' in elem.attrib) and elem.text and (self.song['title'] in elem.text):
+ if ('href' in elem.attrib) and elem.text and (self.song['?title'] in elem.text):
url = QtCore.QUrl('http://www.animelyrics.com/%s'%elem.get('href'))
if not url: