From d502f4c6d95b74896f40070d07229997f0850f31 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:24:17 -0500 Subject: [PATCH] [pp/embedthumbnail] Fix embedding with mutagen (#10337) Fixes regression in f2a4ea1794718e4dc0148bc172cb877f1080903b Closes #10335 Authored by: bashonly --- yt_dlp/postprocessor/embedthumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index f2228ac61..16c8bcdda 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -134,7 +134,7 @@ def run(self, info): meta = MP4(filename) # NOTE: the 'covr' atom is a non-standard MPEG-4 atom, # Apple iTunes 'M4A' files include the 'moov.udta.meta.ilst' atom. - meta.tags['covr'] = [MP4Cover(data=thumb_data, imageformat=f)] + meta.tags['covr'] = [MP4Cover(data=thumb_data, imageformat=f[type_])] meta.save() temp_filename = filename except Exception as err: