mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 22:37:24 +08:00
[YoutubeDL] display all video titles in formats list output
This commit is contained in:
parent
dd88fd65a5
commit
3b8f7a876c
@ -2177,9 +2177,12 @@ class YoutubeDL(object):
|
||||
table[-1][-1] += (' ' if table[-1][-1] else '') + '(best)'
|
||||
|
||||
header_line = ['format code', 'extension', 'resolution', 'note']
|
||||
video_descriptor = info_dict['id']
|
||||
if info_dict['title'] is not None:
|
||||
video_descriptor = info_dict['title'] + '-' + video_descriptor
|
||||
self.to_screen(
|
||||
'[info] Available formats for %s:\n%s' %
|
||||
(info_dict['id'], render_table(header_line, table)))
|
||||
(video_descriptor, render_table(header_line, table)))
|
||||
|
||||
def list_thumbnails(self, info_dict):
|
||||
thumbnails = info_dict.get('thumbnails')
|
||||
|
Loading…
x
Reference in New Issue
Block a user