Colorized output of beet fetchart, for easier detection of albums with no cover

This commit is contained in:
Bruno Tournay 2014-01-27 22:03:42 +01:00
parent 0466df6215
commit 1a4b15c4a5

View file

@ -219,8 +219,12 @@ def batch_fetch_art(lib, albums, force, maxwidth=None):
album.set_art(path, False)
album.store()
message = 'found album art'
if config['color']:
message = ui.colorize('red', message)
else:
message = 'no art found'
if config['color']:
message = ui.colorize('turquoise', message)
log.info(u'{0} - {1}: {2}'.format(album.albumartist, album.album,
message))