From 15a4fd53d3a31b1aabbd6f0ad29f981cd27a06a5 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 25 Jun 2021 05:36:35 +0530 Subject: [thumbnailsconvertor] Treat `jpeg` as `jpg` --- yt_dlp/postprocessor/embedthumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/postprocessor/embedthumbnail.py') 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' -- cgit v1.2.3