mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
Use new _embed api
This commit is contained in:
parent
9b88525736
commit
9090f0979f
1 changed files with 3 additions and 3 deletions
|
|
@ -125,7 +125,7 @@ def embed(lib, imagepath, query):
|
|||
log.info(u'Embedding album art into {0.albumartist} - {0.album}.'.format(
|
||||
album
|
||||
))
|
||||
_embed(imagepath, album.items(),
|
||||
_embed(imagepath, [i.path for i in album.items()],
|
||||
config['embedart']['maxwidth'].get(int))
|
||||
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ def embed_current(lib, query):
|
|||
|
||||
log.info(u'Embedding album art into {0} - {1}'.
|
||||
format(album.albumartist, album.album))
|
||||
_embed(album.artpath, album.items(),
|
||||
_embed(album.artpath, [i.path for i in album.items()],
|
||||
config['embedart']['maxwidth'].get(int))
|
||||
|
||||
|
||||
|
|
@ -203,5 +203,5 @@ def album_imported(lib, album):
|
|||
"""Automatically embed art into imported albums.
|
||||
"""
|
||||
if album.artpath and config['embedart']['auto']:
|
||||
_embed(album.artpath, album.items(),
|
||||
_embed(album.artpath, [i.path for i in album.items()],
|
||||
config['embedart']['maxwidth'].get(int))
|
||||
|
|
|
|||
Loading…
Reference in a new issue