diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-16 01:39:45 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-16 01:39:45 +0100 |
commit | b5349e8721d0580a50519593926726a2ea832c9b (patch) | |
tree | 54745692c46289fc6710a30b8b7f8e6a59b2a736 | |
parent | 7150858d49f05a5650a12b5f4694f91dfb9595d3 (diff) | |
download | youtube-dl-b5349e8721d0580a50519593926726a2ea832c9b.zip youtube-dl-b5349e8721d0580a50519593926726a2ea832c9b.tar.gz youtube-dl-b5349e8721d0580a50519593926726a2ea832c9b.tar.bz2 |
Fix indentation of (best) and (worst) in --list-formats
-rw-r--r-- | youtube_dl/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 273f7d9..d29e8be 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -815,8 +815,8 @@ class YoutubeDL(object): formats = info_dict.get('formats', [info_dict]) formats_s = list(map(line, formats)) if len(formats) > 1: - formats_s[0] += (' ' if formats[0].get('format_note') else '') + '(worst)' - formats_s[-1] += (' ' if formats[-1].get('format_note') else '') + '(best)' + formats_s[0] += (' ' if format_note(formats[0]) else '') + '(worst)' + formats_s[-1] += (' ' if format_note(formats[-1]) else '') + '(best)' header_line = line({ 'format_id': u'format code', 'ext': u'extension', |