diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 17:15:33 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 18:24:17 +0530 |
commit | 681de68e9df67f07dde3fbbc6cb2e65a78b2bb16 (patch) | |
tree | 5c316caede4f743dd7d6f1b4c5b9fd42b1c3f6d6 | |
parent | 7aee40c13c3198f95f5e5f43e557eae9246d559c (diff) | |
download | hypervideo-pre-681de68e9df67f07dde3fbbc6cb2e65a78b2bb16.tar.lz hypervideo-pre-681de68e9df67f07dde3fbbc6cb2e65a78b2bb16.tar.xz hypervideo-pre-681de68e9df67f07dde3fbbc6cb2e65a78b2bb16.zip |
Write thumbnail of playlist
Related: https://github.com/ytdl-org/youtube-dl/pull/28872, https://github.com/ytdl-org/youtube-dl/pull/28860
This is slightly different from the above PRs in that this downloads the playlist's thumbnail instead of the uploader's profile picture. But for youtube channel URLs these are the same
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 72895eff5..c7d31a7e9 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)): |