From 13e7cb305af6fed28e02b963ad4aafc5e7ca50fd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 9 Oct 2009 19:25:41 +0200 Subject: AlbumCover: abort if artist or album is empty --- nephilim/plugins/AlbumCover.py | 2 ++ 1 file changed, 2 insertions(+) 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'), -- cgit v1.2.3