1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00
This commit is contained in:
Romain 2025-06-20 21:49:31 +02:00 committed by GitHub
commit 51572a521f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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