From 87e8e35985557f55de080039cdd05a7caa3793e3 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 16 Aug 2012 18:19:32 +0530 Subject: [PATCH] Fixed bug where fetching album art from Last.FM would hang if no album art was found --- headphones/postprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 3e4125bf..6a90c706 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -240,7 +240,7 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list) if len(artwork) < 100: logger.info("No suitable album art found from Amazon. Checking Last.FM....") artwork = albumart.getCachedArt(albumid) - if len(artwork) < 100: + if not artwork or len(artwork) < 100: artwork = False logger.info("No suitable album art found from Last.FM. Not adding album art")