diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-25 05:36:35 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-25 05:36:35 +0530 |
commit | 15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5 (patch) | |
tree | 5f98abb7b0d2e3494ea3bff050b385ce6cbbb683 /yt_dlp/postprocessor/ffmpeg.py | |
parent | 4513a41a72224e56b6b6f52712ab5b639f98a63c (diff) | |
download | hypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.tar.lz hypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.tar.xz hypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.zip |
[thumbnailsconvertor] Treat `jpeg` as `jpg`
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r-- | yt_dlp/postprocessor/ffmpeg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 83714358e..0d5e78f3d 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -896,6 +896,8 @@ class FFmpegThumbnailsConvertorPP(FFmpegPostProcessor): _, thumbnail_ext = os.path.splitext(original_thumbnail) if thumbnail_ext: thumbnail_ext = thumbnail_ext[1:].lower() + if thumbnail_ext == 'jpeg': + thumbnail_ext = 'jpg' if thumbnail_ext == self.format: self.to_screen('Thumbnail "%s" is already in the requested format' % original_thumbnail) continue |