From 8ba87148802843c6502f7ffc48e574a2eb0049d2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 11 Jun 2021 17:37:02 +0530 Subject: [PATCH] [EmbedThumbnail] Fix for already downloaded thumbnail --- yt_dlp/YoutubeDL.py | 1 + yt_dlp/options.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index c7d6c34f0..5532ea76c 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3247,6 +3247,7 @@ def _write_thumbnails(self, info_dict, filename): # return the extensions if not self.params.get('overwrites', True) and os.path.exists(encodeFilename(thumb_filename)): ret.append(suffix + thumb_ext) + t['filepath'] = thumb_filename self.to_screen('[%s] %s: Thumbnail %sis already present' % (info_dict['extractor'], info_dict['id'], thumb_display_id)) else: diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 4d17356da..eb137ac47 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -1200,7 +1200,7 @@ def _dict_from_options_callback( postproc.add_option( '--embed-thumbnail', action='store_true', dest='embedthumbnail', default=False, - help='Embed thumbnail in the audio as cover art') + help='Embed thumbnail in the video/audio as cover art') postproc.add_option( '--no-embed-thumbnail', action='store_false', dest='embedthumbnail',