X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Falbum_art.py;h=4ca7344b9bd00361466c3bd6937d7bbb7e908773;hb=756eadcca4b354ac94e7998dedd17df5c731b0a4;hp=06ae5cd23b4bde1d50cd14d3886102676c4ea64e;hpb=13dc600f2d697baa013e15c4535a89ac1bb9d27c;p=mussorgsky 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)