mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
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:
parent
314dd0e6bc
commit
0ebc4c799d
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue