mirror of
https://github.com/beetbox/beets.git
synced 2025-12-23 09:03:49 +01:00
Store images as string
This commit is contained in:
parent
0ada772cf9
commit
2755bcb5a2
1 changed files with 3 additions and 3 deletions
|
|
@ -523,7 +523,7 @@ class MP4ImageStorageStyle(MP4ListStorageStyle):
|
|||
|
||||
def __init__(self, **kwargs):
|
||||
super(MP4ImageStorageStyle, self).__init__(key='covr', **kwargs)
|
||||
self.as_type = bytearray
|
||||
self.as_type = str
|
||||
|
||||
def store(self, mediafile, images):
|
||||
covers = [self._mp4_cover(image) for image in images]
|
||||
|
|
@ -641,7 +641,7 @@ class MP3ImageStorageStyle(ListStorageStyle, MP3StorageStyle):
|
|||
|
||||
def __init__(self):
|
||||
super(MP3ImageStorageStyle, self).__init__(key='APIC')
|
||||
self.as_type = bytearray
|
||||
self.as_type = str
|
||||
|
||||
def fetch(self, mediafile):
|
||||
try:
|
||||
|
|
@ -666,7 +666,7 @@ class VorbisImageStorageStyle(ListStorageStyle):
|
|||
|
||||
def __init__(self):
|
||||
super(VorbisImageStorageStyle, self).__init__(key='')
|
||||
self.as_type = bytearray
|
||||
self.as_type = str
|
||||
|
||||
def fetch(self, mediafile):
|
||||
if 'metadata_block_picture' not in mediafile.mgfile:
|
||||
|
|
|
|||
Loading…
Reference in a new issue