From 3b8f7a876c054d34961d300cd2dc9b421b59cab9 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Mon, 27 Aug 2018 02:44:45 -0500 Subject: [PATCH] [YoutubeDL] display all video titles in formats list output --- youtube_dl/YoutubeDL.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 38ba43a97..592708b89 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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')