aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-25 05:36:35 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-25 05:36:35 +0530
commit15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5 (patch)
tree5f98abb7b0d2e3494ea3bff050b385ce6cbbb683 /yt_dlp/postprocessor/embedthumbnail.py
parent4513a41a72224e56b6b6f52712ab5b639f98a63c (diff)
downloadhypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.tar.lz
hypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.tar.xz
hypervideo-pre-15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5.zip
[thumbnailsconvertor] Treat `jpeg` as `jpg`
Diffstat (limited to 'yt_dlp/postprocessor/embedthumbnail.py')
-rw-r--r--yt_dlp/postprocessor/embedthumbnail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py
index 3427b2cb4..48d4b673d 100644
--- a/yt_dlp/postprocessor/embedthumbnail.py
+++ b/yt_dlp/postprocessor/embedthumbnail.py
@@ -92,7 +92,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
# format, there will be some additional data loss.
# PNG, on the other hand, is lossless.
thumbnail_ext = os.path.splitext(thumbnail_filename)[1][1:]
- if thumbnail_ext not in ('jpg', 'png'):
+ if thumbnail_ext not in ('jpg', 'jpeg', 'png'):
thumbnail_filename = convertor.convert_thumbnail(thumbnail_filename, 'png')
thumbnail_ext = 'png'