From 6572e1bf5abd134547f241b74ccb969d2b0415f8 Mon Sep 17 00:00:00 2001 From: Tom Jaspers Date: Mon, 9 Feb 2015 14:59:56 +0100 Subject: [PATCH] Fetchart: add empty album check to iTunes art Was causing some tests to fail in test_art.py:CombinedTest --- beetsplug/fetchart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 1896552bf..7db05583b 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -142,6 +142,8 @@ class ITunesStore(ArtSource): def get(self, album): """Return art URL from iTunes Store given an album title. """ + if not (album.albumartist and album.album): + return search_string = (album.albumartist + ' ' + album.album).encode('utf-8') try: # Isolate bugs in the iTunes library while searching.