Skip to content

A feature-rich command-line audio/video downloader

Write thumbnail of playlist

pukkandan681de68e9df6
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 72895eff5c..c7d31a7e95 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1379,6 +1379,9 @@ class YoutubeDL(object):
except (OSError, IOError):
self.report_error('Cannot write playlist metadata to JSON file ' + infofn)
+ # TODO: This should be passed to ThumbnailsConvertor if necessary
+ self._write_thumbnails(ie_copy, self.prepare_filename(ie_copy, 'pl_thumbnail'))
+
if self.params.get('writedescription', False):
descfn = self.prepare_filename(ie_copy, 'pl_description')
if not self._ensure_dir_exists(encodeFilename(descfn)):