From 5335bc6b8a94c31a2485a1be0d2b262e3d797ea3 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 14 Jul 2010 00:01:54 -0700 Subject: [PATCH] log a message when no art is found --- beets/ui/commands.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 62b63d448..71164bd5a 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -234,13 +234,17 @@ def tag_album(items, lib, copy=True, write=True, logfile=None, art=False): lib.add(item) # Get album art. - if art: - artpath = autotag.art.art_for_album(info) - if artpath: - artdest = lib.art_path(items[0], artpath) - #fixme -- move if possible? - shutil.copy(artpath, artdest) - lib.albuminfo(items[0]).artpath = artdest + if info is not CHOICE_ASIS: + if art: + artpath = autotag.art.art_for_album(info) + if artpath: + artdest = lib.art_path(items[0], artpath) + #fixme -- move if possible? + shutil.copy(artpath, artdest) + lib.albuminfo(items[0]).artpath = artdest + else: + log.info('no album art found for %s - %s' % + (info['artist'], info['album'])) def import_files(lib, paths, copy=True, write=True, autot=True, logpath=None, art=False):