embedart: Fix logging during import (#1014)

Regression introduced in 2813cd26c1.
This commit is contained in:
Adrian Sampson 2014-10-14 09:40:41 -07:00
parent c8b89da4b9
commit 7754fe5a40
2 changed files with 8 additions and 4 deletions

View file

@ -104,7 +104,7 @@ def album_imported(lib, album):
"""Automatically embed art into imported albums.
"""
if album.artpath and config['embedart']['auto']:
embed_album(album, config['embedart']['maxwidth'].get(int))
embed_album(album, config['embedart']['maxwidth'].get(int), True)
def embed_item(item, imagepath, maxwidth=None, itempath=None,
@ -128,7 +128,7 @@ def embed_item(item, imagepath, maxwidth=None, itempath=None,
del item['images']
def embed_album(album, maxwidth=None):
def embed_album(album, maxwidth=None, quiet=False):
"""Embed album art into all of the album's items.
"""
imagepath = album.artpath
@ -141,8 +141,10 @@ def embed_album(album, maxwidth=None):
.format(displayable_path(imagepath)))
return
log.info(u'Embedding album art into {0.albumartist} - {0.album}.'
.format(album))
log.log(
logging.DEBUG if quiet else logging.INFO,
u'Embedding album art into {0.albumartist} - {0.album}.'.format(album),
)
for item in album.items():
embed_item(item, imagepath, maxwidth, None,

View file

@ -42,6 +42,8 @@ Fixes:
temporarily
* :doc:`/plugins/discogs`: Recover from HTTP errors when communicating with
the Discogs servers. Thanks to Dustin Rodriguez.
* :doc:`/plugins/embedart`: Do not log "embedding album art into..." messages
during the import process.
1.3.8 (September 17, 2014)