some MediaFile fields were marked as str rather than unicode

This commit is contained in:
Adrian Sampson 2011-07-30 09:51:25 -07:00
parent 3b2ea5d289
commit ec125b701f
2 changed files with 5 additions and 8 deletions

1
NEWS
View file

@ -1,6 +1,7 @@
1.0b10
------
* Fix a missing __future__ import in embedart on Python 2.5.
* Fix Unicode encoding of album artist, album type, and label.
1.0b9
-----

View file

@ -790,24 +790,20 @@ class MediaFile(object):
albumartist = MediaField(
mp3 = StorageStyle('TXXX', id3_desc=u'Album Artist'),
mp4 = StorageStyle(
'----:com.apple.iTunes:Album Artist',
as_type=str),
'----:com.apple.iTunes:Album Artist'),
etc = [StorageStyle('album artist'),
StorageStyle('albumartist')]
)
albumtype = MediaField(
mp3 = StorageStyle('TXXX', id3_desc=u'MusicBrainz Album Type'),
mp4 = StorageStyle(
'----:com.apple.iTunes:MusicBrainz Album Type',
as_type=str),
'----:com.apple.iTunes:MusicBrainz Album Type'),
etc = StorageStyle('musicbrainz_albumtype')
)
label = MediaField(
mp3 = StorageStyle('TPUB'),
mp4 = [StorageStyle('----:com.apple.iTunes:Label',
as_type=str),
StorageStyle('----:com.apple.iTunes:publisher', # Traktor
as_type=str)],
mp4 = [StorageStyle('----:com.apple.iTunes:Label'),
StorageStyle('----:com.apple.iTunes:publisher')],
etc = [StorageStyle('label'),
StorageStyle('publisher')] # Traktor
)