mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 09:03:59 +00:00
Fix test_mp4 failure AssertionError: 'image/jpeg' != 'image/png'
value is already a MP4Cover, calling it again just set the format to default JPEG, causing this issue on load.
This commit is contained in:
@@ -135,7 +135,6 @@ class MP4File(File):
|
||||
metadata["totaldiscs"] = str(values[0][1])
|
||||
elif name == "covr":
|
||||
for value in values:
|
||||
value = MP4Cover(value)
|
||||
if value.imageformat == value.FORMAT_JPEG:
|
||||
metadata.add_image("image/jpeg", value)
|
||||
elif value.imageformat == value.FORMAT_PNG:
|
||||
|
||||
Reference in New Issue
Block a user