mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 07:40:30 +01:00
[embedthumbnail] Fix bug with deleting original thumbnail (Closes #113)
:ci skip dl
This commit is contained in:
parent
127d075955
commit
0e0040519b
@ -193,4 +193,6 @@ def is_webp(path):
|
|||||||
info['__thumbnail_filename'], os.path.splitext(original_thumbnail)[1][1:])
|
info['__thumbnail_filename'], os.path.splitext(original_thumbnail)[1][1:])
|
||||||
if original_thumbnail == thumbnail_filename:
|
if original_thumbnail == thumbnail_filename:
|
||||||
files_to_delete = []
|
files_to_delete = []
|
||||||
|
elif original_thumbnail != thumbnail_filename:
|
||||||
|
files_to_delete.append(original_thumbnail)
|
||||||
return files_to_delete, info
|
return files_to_delete, info
|
||||||
|
Loading…
Reference in New Issue
Block a user