NEWS note; check for missing art when extracting

This commit is contained in:
Adrian Sampson 2011-04-21 01:33:56 -07:00
parent 415fe0be31
commit e8d54af9df
2 changed files with 12 additions and 3 deletions

8
NEWS
View file

@ -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

View file

@ -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: