From 9090f0979f74f7c9f42cfe5a844b1a175a52072a Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Sat, 26 Apr 2014 19:44:29 +0200 Subject: [PATCH] Use new _embed api --- beetsplug/embedart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index e6d4980eb..ffdf70715 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -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))