diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 7276dd527..83c64f004 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -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, diff --git a/docs/changelog.rst b/docs/changelog.rst index 321ef5a4d..38f99638d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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)