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:
parent
b77e5a553a
commit
8e0febfbe5
@ -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)}'
|
||||
|
Loading…
Reference in New Issue
Block a user