Fetchart: add empty album check to iTunes art

Was causing some tests to fail in test_art.py:CombinedTest
This commit is contained in:
Tom Jaspers 2015-02-09 14:59:56 +01:00
parent bbc6d0906b
commit 6572e1bf5a

View file

@ -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.