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:
Laurent Monin
2013-06-08 01:01:27 +02:00
parent e03c091e57
commit 3ea141dfe2

View File

@@ -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: