summaryrefslogtreecommitdiff
path: root/nephilim/plugins/AlbumCover.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/plugins/AlbumCover.py')
-rw-r--r--nephilim/plugins/AlbumCover.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py
index 8a26bc8..6de4519 100644
--- a/nephilim/plugins/AlbumCover.py
+++ b/nephilim/plugins/AlbumCover.py
@@ -21,7 +21,7 @@ from PyQt4.QtCore import pyqtSignal as Signal
import os
from ..plugin import Plugin
-from .. import common
+from .. import common, metadata_fetcher, song
from .. import icons
class AlbumCoverWidget(QtGui.QLabel):
@@ -316,10 +316,11 @@ class AlbumCover(Plugin):
def get_settings_widget(self):
return self.SettingsWidgetAlbumCover(self)
-class FetcherLastfm(common.MetadataFetcher):
+class FetcherLastfm(metadata_fetcher.MetadataFetcher):
name = 'Last.fm'
def fetch(self, song):
+ self.song = song
if not 'artist' in song or not 'album' in song:
return self.finish()
url = QtCore.QUrl('http://ws.audioscrobbler.com/2.0/')
@@ -371,7 +372,7 @@ class FetcherLocal(QtCore.QObject):
settings = None
# SIGNALS
- finished = Signal('song', 'metadata')
+ finished = Signal([song.Song, object])
def __init__(self, plugin):
QtCore.QObject.__init__(self, plugin)