diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-21 12:51:06 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-21 12:52:15 +0530 |
commit | 0bfc53d05c7ecd7762313f0cd8578c46cd916519 (patch) | |
tree | 6ce102af8fc2ab8251780454156ab243cc1d342d /yt_dlp/YoutubeDL.py | |
parent | 78ab4f447c7aa019bb73b7d5b711c78dc4dd0f73 (diff) | |
download | hypervideo-pre-0bfc53d05c7ecd7762313f0cd8578c46cd916519.tar.lz hypervideo-pre-0bfc53d05c7ecd7762313f0cd8578c46cd916519.tar.xz hypervideo-pre-0bfc53d05c7ecd7762313f0cd8578c46cd916519.zip |
List playlist thumbnails in `--list-thumbnails`
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 27fcc2a81..11708774e 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1709,7 +1709,10 @@ class YoutubeDL(object): ie_result['requested_entries'] = playlistitems _infojson_written = False - if not self.params.get('simulate') and self.params.get('allow_playlist_files', True): + write_playlist_files = self.params.get('allow_playlist_files', True) + if write_playlist_files and self.params.get('list_thumbnails'): + self.list_thumbnails(ie_result) + if write_playlist_files and not self.params.get('simulate'): ie_copy = self._playlist_infodict(ie_result, n_entries=n_entries) _infojson_written = self._write_info_json( 'playlist', ie_result, self.prepare_filename(ie_copy, 'pl_infojson')) |