From 3046c17822cef47353b9e45b8d05368c4094b23a Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Fri, 26 Apr 2024 15:51:37 -0700 Subject: [PATCH] Fixed filepath bug when embedding thumbnails --- yt_dlp/postprocessor/embedthumbnail.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index 9c5372956c..559fbfd449 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -224,4 +224,8 @@ def run(self, info): thumbnail_filename if converted or not self._already_have_thumbnail else None, original_thumbnail if converted and not self._already_have_thumbnail else None, info=info) + + if not self._already_have_thumbnail: + del info['thumbnails'][idx]['filepath'] + return [], info