From 3ea141dfe2041ee97fa336c0b06686876a5a2e95 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Sat, 8 Jun 2013 01:01:27 +0200 Subject: [PATCH] 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. --- picard/formats/mp4.py | 1 - 1 file changed, 1 deletion(-) diff --git a/picard/formats/mp4.py b/picard/formats/mp4.py index 24039cad2..b0894fd64 100644 --- a/picard/formats/mp4.py +++ b/picard/formats/mp4.py @@ -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: