diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-25 18:31:54 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-25 18:35:04 +0530 |
commit | 0e0040519bf5554dabfcb1a3be106d94f18379cc (patch) | |
tree | 83cae8bc9e729257c5988f73c4795fd9daa844d2 | |
parent | 127d07595538ebc108712d5fdb06ee927743c637 (diff) | |
download | hypervideo-pre-0e0040519bf5554dabfcb1a3be106d94f18379cc.tar.lz hypervideo-pre-0e0040519bf5554dabfcb1a3be106d94f18379cc.tar.xz hypervideo-pre-0e0040519bf5554dabfcb1a3be106d94f18379cc.zip |
[embedthumbnail] Fix bug with deleting original thumbnail (Closes #113)
:ci skip dl
-rw-r--r-- | yt_dlp/postprocessor/embedthumbnail.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ class EmbedThumbnailPP(FFmpegPostProcessor): 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 |