mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 15:59:47 +01:00
Store Vorbis image blocks using text strings
This commit is contained in:
parent
a3236cbee0
commit
17927303ed
1 changed files with 5 additions and 1 deletions
|
|
@ -955,7 +955,11 @@ class VorbisImageStorageStyle(ListStorageStyle):
|
|||
pic.type = image.type_index
|
||||
pic.mime = image.mime_type
|
||||
pic.desc = image.desc or u''
|
||||
return base64.b64encode(pic.write())
|
||||
|
||||
# Encoding with base64 returns bytes on both Python 2 and 3.
|
||||
# Mutagen requires the data to be a Unicode string, so we decode
|
||||
# it before passing it along.
|
||||
return base64.b64encode(pic.write()).decode('ascii')
|
||||
|
||||
|
||||
class FlacImageStorageStyle(ListStorageStyle):
|
||||
|
|
|
|||
Loading…
Reference in a new issue