summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-27 19:55:50 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-04 20:10:59 +0200
commiteb40d86a586451ebd399428899c17ac66619f314 (patch)
tree8cebfdcf046b1024a9180070e95c451ee6f7d3a7 /nephilim/plugins/Lyrics.py
parent82fb2128be98f04ab403f192d5a42c7e2075d8f5 (diff)
common: split MetadataFetcher into its own file
also fix finished() signal signature
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index 4413b8e..30e18fa 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -22,7 +22,7 @@ import re
from lxml import etree
from ..plugin import Plugin
-from .. import common
+from .. import common, metadata_fetcher
from .. import icons
class LyricsWidget(QtGui.QWidget):
@@ -300,7 +300,7 @@ class Lyrics(Plugin):
self.__fetchers.append(fetcher(self))
self.__fetchers[-1].finished.connect(self.__new_lyrics_fetched)
-class FetchLyricwiki(common.MetadataFetcher):
+class FetchLyricwiki(metadata_fetcher.MetadataFetcher):
name = 'Lyricwiki'
__apiaddress = 'http://lyrics.wikia.com/api.php'
@@ -364,7 +364,7 @@ class FetchLyricwiki(common.MetadataFetcher):
lyrics += gr + '\n'
self.finish(common.decode_htmlentities(lyrics))
-class FetchAnimelyrics(common.MetadataFetcher):
+class FetchAnimelyrics(metadata_fetcher.MetadataFetcher):
name = 'Animelyrics'
def fetch(self, song):