mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
Set APIC frame desc to unicode
Weirdly, using binary data here resulted in Mutagen storing a string containing "b'foo'", i.e., the `repr` of a bytes object.
This commit is contained in:
parent
b1fb17c29c
commit
a3236cbee0
1 changed files with 1 additions and 1 deletions
|
|
@ -874,7 +874,7 @@ class MP3ImageStorageStyle(ListStorageStyle, MP3StorageStyle):
|
|||
frame = mutagen.id3.Frames[self.key]()
|
||||
frame.data = image.data
|
||||
frame.mime = image.mime_type
|
||||
frame.desc = (image.desc or u'').encode('utf8')
|
||||
frame.desc = image.desc or u''
|
||||
frame.encoding = 3 # UTF-8 encoding of desc
|
||||
frame.type = image.type_index
|
||||
return frame
|
||||
|
|
|
|||
Loading…
Reference in a new issue