log a message when no art is found

This commit is contained in:
Adrian Sampson 2010-07-14 00:01:54 -07:00
parent 54df8a7b43
commit 5335bc6b8a

View file

@ -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):