mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +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`')
|
raise EmbedThumbnailPPError('module mutagen was not found. Please install using `python3 -m pip install mutagen`')
|
||||||
|
|
||||||
self._report_run('mutagen', filename)
|
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 = Picture()
|
||||||
pic.mime = f'image/{imghdr.what(thumbnail_filename)}'
|
pic.mime = f'image/{imghdr.what(thumbnail_filename)}'
|
||||||
|
Loading…
Reference in New Issue
Block a user