From 8e0febfbe566d350f67efe2ea1384a468cffe892 Mon Sep 17 00:00:00 2001 From: Starmania Date: Thu, 1 May 2025 18:18:34 +0200 Subject: [PATCH] [postprocessor/embedthumbnail] Fix wrong format --- 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 d8ba220ca..8570144ed 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -199,7 +199,7 @@ def run(self, info): raise EmbedThumbnailPPError('module mutagen was not found. Please install using `python3 -m pip install mutagen`') self._report_run('mutagen', filename) - f = {'opus': OggOpus, 'flac': FLAC, 'ogg': OggVorbis}[info['ext']](filename) + f = {'opus': OggOpus, 'flac': FLAC, 'ogg': OggVorbis}[info['acodec']](filename) pic = Picture() pic.mime = f'image/{imghdr.what(thumbnail_filename)}'