From 0e0040519bf5554dabfcb1a3be106d94f18379cc Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 25 Feb 2021 18:31:54 +0530 Subject: [PATCH] [embedthumbnail] Fix bug with deleting original thumbnail (Closes #113) :ci skip dl --- yt_dlp/postprocessor/embedthumbnail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index 926673363..cc6cd1c8e 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -193,4 +193,6 @@ def is_webp(path): info['__thumbnail_filename'], os.path.splitext(original_thumbnail)[1][1:]) if original_thumbnail == thumbnail_filename: files_to_delete = [] + elif original_thumbnail != thumbnail_filename: + files_to_delete.append(original_thumbnail) return files_to_delete, info