mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 10:05:35 +01:00
add artist credit fields to MediaFile (GC-286)
This commit is contained in:
parent
1387f30295
commit
e56ca46b75
2 changed files with 16 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# This file is part of beets.
|
||||
# Copyright 2011, Adrian Sampson.
|
||||
# Copyright 2012, Adrian Sampson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining
|
||||
# a copy of this software and associated documentation files (the
|
||||
|
|
@ -911,6 +911,18 @@ class MediaFile(object):
|
|||
etc = StorageStyle('MUSICBRAINZ_ALBUMCOMMENT'),
|
||||
)
|
||||
|
||||
# Nonstandard metadata.
|
||||
artist_credit = MediaField(
|
||||
mp3 = StorageStyle('TXXX', id3_desc=u'Artist Credit'),
|
||||
mp4 = StorageStyle("----:com.apple.iTunes:Artist Credit"),
|
||||
etc = StorageStyle('ARTIST_CREDIT'),
|
||||
)
|
||||
albumartist_credit = MediaField(
|
||||
mp3 = StorageStyle('TXXX', id3_desc=u'Album Artist Credit'),
|
||||
mp4 = StorageStyle("----:com.apple.iTunes:Album Artist Credit"),
|
||||
etc = StorageStyle('ALBUMARTIST_CREDIT'),
|
||||
)
|
||||
|
||||
# Album art.
|
||||
art = ImageField()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# This file is part of beets.
|
||||
# Copyright 2011, Adrian Sampson.
|
||||
# Copyright 2012, Adrian Sampson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining
|
||||
# a copy of this software and associated documentation files (the
|
||||
|
|
@ -239,6 +239,8 @@ correct_dicts = {
|
|||
'albumstatus': u'',
|
||||
'media': u'',
|
||||
'albumdisambig': u'',
|
||||
'artist_credit': u'',
|
||||
'albumartist_credit': u'',
|
||||
},
|
||||
|
||||
# Full release date.
|
||||
|
|
|
|||
Loading…
Reference in a new issue