1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00

[postprocessor/embedthumbnail] Fix wrong format

This commit is contained in:
Starmania 2025-05-01 18:18:34 +02:00
parent b77e5a553a
commit 8e0febfbe5

View File

@ -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)}'