diff --git a/NEWS b/NEWS index 730cd235d..c2d024e55 100644 --- a/NEWS +++ b/NEWS @@ -13,8 +13,12 @@ support matching individual items as well. * The importer/autotagger system has been heavily refactored in this release. If anything breaks as a result, please let me know. -* Support for album art embedded in files. The "embedcoverart" plugin - provides this functionality. (Thanks, daenney!) +* Support for album art embedded in files. A new plugin, called + "embedart", implements this functionality. Enable the plugin to + automatically embed downloaded album art into your music files' + metadata. The plugin also provides the "embedart" and "extractart" + commands for moving image files in and out of metadata. See the + wiki for more details. (Thanks, daenney!) * The "distance" number, which quantifies how different an album's current and proposed metadata are, is now displayed as "similarity" instead. This should be less noisy and confusing; you'll now see diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 651db307a..c90c9860a 100755 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -84,7 +84,12 @@ def extract(lib, outpath, query): # Extract the art. print syspath(item.path) mf = mediafile.MediaFile(syspath(item.path)) - data, kind = mf.art + art = mf.art + if not art: + log.error('No album art present in %s - %s.' % + (item.artist, item.title)) + return + data, kind = art # Add an extension to the filename. if kind == mediafile.imagekind.JPEG: