mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 07:53:40 +01:00
embedart: Fix logging during import (#1014)
Regression introduced in 2813cd26c1.
This commit is contained in:
parent
c8b89da4b9
commit
7754fe5a40
2 changed files with 8 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue