summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-10-09 19:25:41 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-10-09 19:25:41 +0200
commit13e7cb305af6fed28e02b963ad4aafc5e7ca50fd (patch)
treec7a38b1690374e816e7f86c648025a2d89afd42d
parent7d286dc81e82d4f26609a6e8987850a68c8156c9 (diff)
AlbumCover: abort if artist or album is empty
-rw-r--r--nephilim/plugins/AlbumCover.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py
index 3329b7c..d628707 100644
--- a/nephilim/plugins/AlbumCover.py
+++ b/nephilim/plugins/AlbumCover.py
@@ -219,6 +219,8 @@ class AlbumCover(Plugin):
name = 'Last.fm'
def fetch(self, song):
+ if song['album'] or not song['album']:
+ return self.finish()
url = QtCore.QUrl('http://ws.audioscrobbler.com/2.0/')
url.setQueryItems([('api_key', 'beedb2a8a0178b8059cd6c7e57fbe428'),
('method', 'album.getInfo'),