summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-11-29 12:13:20 +0100
committerAnton Khirnov <wyskas@gmail.com>2009-11-29 12:13:20 +0100
commitd438053bdc5b3496efdfc14054a59c06992fb5ad (patch)
tree1ef1379f4e68ef245e4fae777ea58448ba32c69e
parent4ffd1234e51b6109f45c8bb5576066ce30db3a99 (diff)
AlbumCover: fix last.fm fetcher.
-rw-r--r--nephilim/plugins/AlbumCover.py3
1 files changed, 2 insertions, 1 deletions
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'),