From 0ebc4c799d8f50da3c986723f8b2a9fa25f3f826 Mon Sep 17 00:00:00 2001 From: reiv Date: Wed, 4 Nov 2015 15:08:42 +0100 Subject: [PATCH] fetchart: in auto, ignore albums with art When re-importing an album, we don't want fetchart to interfere with any existing album art. --- beetsplug/fetchart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index b807891e0..2c20dd698 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -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