1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 18:52:48 +01:00

[ThumbnailsConvertor] Fix conversion after fixup_webp

Closes #4565
This commit is contained in:
pukkandan 2022-08-14 20:34:55 +05:30
parent a6125983ab
commit 0e0ce898f6
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -1105,6 +1105,7 @@ def run(self, info):
continue
has_thumbnail = True
self.fixup_webp(info, idx)
original_thumbnail = thumbnail_dict['filepath'] # Path can change during fixup
thumbnail_ext = os.path.splitext(original_thumbnail)[1][1:].lower()
if thumbnail_ext == 'jpeg':
thumbnail_ext = 'jpg'