mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 16:34:45 +01:00
Fetchart: add empty album check to iTunes art
Was causing some tests to fail in test_art.py:CombinedTest
This commit is contained in:
parent
bbc6d0906b
commit
6572e1bf5a
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue