From aef640de57e376aab3c9a2759eee5a46939f94f5 Mon Sep 17 00:00:00 2001 From: Calimerorulez Date: Wed, 25 Jan 2012 20:38:37 +0100 Subject: [PATCH] Keepin' up with main branch because I'm a noob at git, and waiting for pull request acceptance modified: headphones/postprocessor.py --- headphones/postprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 3b78438e..39aab61d 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -211,13 +211,13 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list) album_art_path = albumart.getAlbumArt(albumid) artwork = urllib.urlopen(album_art_path).read() - if headphones.EMBED_ALBUM_ART: + if headphones.EMBED_ALBUM_ART and artwork: embedAlbumArt(artwork, downloaded_track_list) if headphones.CLEANUP_FILES: cleanupFiles(albumpath) - if headphones.ADD_ALBUM_ART: + if headphones.ADD_ALBUM_ART and artwork: addAlbumArt(artwork, albumpath) if headphones.CORRECT_METADATA: