From d438053bdc5b3496efdfc14054a59c06992fb5ad Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 29 Nov 2009 12:13:20 +0100 Subject: AlbumCover: fix last.fm fetcher. --- nephilim/plugins/AlbumCover.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py index d628707..b630d76 100644 --- a/nephilim/plugins/AlbumCover.py +++ b/nephilim/plugins/AlbumCover.py @@ -213,13 +213,14 @@ class AlbumCover(Plugin): fetchers.append(it.text()) self.settings.setValue('fetchers', QVariant(fetchers)) self.settings.endGroup() + self.plugin.refresh_fetchers() self.plugin.refresh() class FetcherLastfm(common.MetadataFetcher): name = 'Last.fm' def fetch(self, song): - if song['album'] or not song['album']: + if not song['artist'] or not song['album']: return self.finish() url = QtCore.QUrl('http://ws.audioscrobbler.com/2.0/') url.setQueryItems([('api_key', 'beedb2a8a0178b8059cd6c7e57fbe428'), -- cgit v1.2.3