From 756eadcca4b354ac94e7998dedd17df5c731b0a4 Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Tue, 1 Sep 2009 23:17:39 +0300 Subject: [PATCH] Force thumbnail if new album art has been selected It was possible to download a new album art and use still the old thumbnail! --- src/album_art.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/album_art.py b/src/album_art.py index 06ae5cd..4ca7344 100755 --- a/src/album_art.py +++ b/src/album_art.py @@ -75,13 +75,13 @@ class MussorgskyAlbumArt: if (not album_art_available): return (None, None) - if (os.path.exists (thumbnail) and not force): - print "Thumbnail exists " + thumbnail - else: + if (not os.path.exists (thumbnail) or force or album_art_availble): if (not self.__request_thumbnail (filename)): print "Failed doing thumbnail. Probably album art is not an image!" os.remove (filename) return (None, None) + else: + print "Thumbnail exists (and probably valid) " + thumbnail return (filename, thumbnail) -- 1.7.9.5