fetchart: in auto, ignore albums with art

When re-importing an album, we don't want fetchart to interfere
with any existing album art.
This commit is contained in:
reiv 2015-11-04 15:08:42 +01:00
parent 314dd0e6bc
commit 0ebc4c799d

View file

@ -430,6 +430,9 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
def fetch_art(self, session, task):
"""Find art for the album being imported."""
if task.is_album: # Only fetch art for full albums.
if task.album.artpath and os.path.isfile(task.album.artpath):
# Album already has art (probably a re-import); skip it.
return
if task.choice_flag == importer.action.ASIS:
# For as-is imports, don't search Web sources for art.
local = True