convert: log error instead of crashing

This commit is contained in:
Thomas Scholtes 2014-04-26 19:47:50 +02:00
parent 9090f0979f
commit c20c62409d
2 changed files with 8 additions and 1 deletions

View file

@ -190,7 +190,12 @@ def convert_item(dest_dir, keep_new, path_formats):
if album:
artpath = album.artpath
if artpath:
_embed(artpath, [item])
try:
_embed(artpath, [item.path])
except IOError as exc:
log.warn(u'could not embed cover art in {0}: {1}'
.format(util.displayable_path(item.path),
exc))
plugins.send('after_convert', item=item, dest=dest, keepnew=keep_new)

View file

@ -27,6 +27,8 @@ Fixes:
stream by ignoring it. Thanks to brunal.
* :doc:`/plugins/fetchart`: Log an error instead of crashing when tag
manipulation fails.
* :doc:`/plugins/convert`: Log an error instead of crashing when
embedding album art fails.
1.3.5 (April 15, 2014)