mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 13:02:47 +01:00
rename albumart_data to albumart; fix indentation
This commit is contained in:
parent
5c480ccd24
commit
2aa9a17fb3
2 changed files with 7 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue