rename albumart_data to albumart; fix indentation

This commit is contained in:
Adrian Sampson 2011-04-10 12:11:22 -07:00
parent 5c480ccd24
commit 2aa9a17fb3
2 changed files with 7 additions and 7 deletions

View file

@ -675,17 +675,17 @@ class MediaFile(object):
as_type=str),
etc = StorageStyle('musicbrainz_albumtype')
)
albumart = MediaField(
mp3 = StorageStyle('APIC', id3_frame_field=u'data'),
mp4 = StorageStyle('covr', as_type=str),
etc = StorageStyle('picture')
)
albumart_mime = MediaField(
mp3 = StorageStyle('APIC', id3_desc=u'Cover',
id3_frame_field=u'mime'),
mp4 = None,
etc = None
)
albumart_data = MediaField(
mp3 = StorageStyle('APIC', id3_frame_field=u'data'),
mp4 = StorageStyle('covr', as_type=str),
etc = StorageStyle('picture')
)
# MusicBrainz IDs.
mb_trackid = MediaField(

View file

@ -40,7 +40,7 @@ class EmbedCoverArtPlugin(BeetsPlugin):
if "mp3" in item.type:
f.albumart_mime = mime_type
f.albumart_data = albumart_raw
f.albumart = albumart_raw
f.save()
else:
else:
log.error('Sorry, a file of type %s is not allowed as coverart.' % mime_img)