mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 07:40:30 +01:00
List playlist thumbnails in --list-thumbnails
This commit is contained in:
parent
78ab4f447c
commit
0bfc53d05c
@ -1808,7 +1808,7 @@ #### Almost redundant options
|
|||||||
|
|
||||||
-j, --dump-json --print "%()j"
|
-j, --dump-json --print "%()j"
|
||||||
-F, --list-formats --print formats_table
|
-F, --list-formats --print formats_table
|
||||||
--list-thumbnails --print thumbnails_table
|
--list-thumbnails --print thumbnails_table --print playlist:thumbnails_table
|
||||||
--list-subs --print automatic_captions_table --print subtitles_table
|
--list-subs --print automatic_captions_table --print subtitles_table
|
||||||
|
|
||||||
#### Redundant options
|
#### Redundant options
|
||||||
|
@ -1709,7 +1709,10 @@ def get_entry(i):
|
|||||||
ie_result['requested_entries'] = playlistitems
|
ie_result['requested_entries'] = playlistitems
|
||||||
|
|
||||||
_infojson_written = False
|
_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)
|
ie_copy = self._playlist_infodict(ie_result, n_entries=n_entries)
|
||||||
_infojson_written = self._write_info_json(
|
_infojson_written = self._write_info_json(
|
||||||
'playlist', ie_result, self.prepare_filename(ie_copy, 'pl_infojson'))
|
'playlist', ie_result, self.prepare_filename(ie_copy, 'pl_infojson'))
|
||||||
|
Loading…
Reference in New Issue
Block a user