ID3 desc fields also use unicode strings

The old version *also* silently led to the string "b'foo'" being stored in the
frame on Python 3.
This commit is contained in:
Adrian Sampson 2016-07-01 21:47:18 -07:00
parent 30a172fff3
commit 4ddb7cfe9e

View file

@ -778,7 +778,7 @@ class MP3DescStorageStyle(MP3StorageStyle):
# Try creating a new frame.
if not found:
frame = mutagen.id3.Frames[self.key](
desc=self.description.encode('utf8'),
desc=self.description,
text=value,
encoding=mutagen.id3.Encoding.UTF8,
)