projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1309b39
)
[YoutubeDL] Do not show worst in --list-formats output
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 9 Feb 2015 14:57:40 +0000
(15:57 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 9 Feb 2015 14:57:42 +0000
(15:57 +0100)
Nobody wants to know what the worst possible format is. And if they do, they can still provide -f worst.
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index c7108dbc11aadd8e05acc9214ad153a456f6897c..3975ae0bc231060120a622e087d1c1f995a375f2 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-1546,7
+1546,6
@@
class YoutubeDL(object):
line(f, idlen) for f in formats
if f.get('preference') is None or f['preference'] >= -1000]
if len(formats) > 1:
- formats_s[0] += (' ' if self._format_note(formats[0]) else '') + '(worst)'
formats_s[-1] += (' ' if self._format_note(formats[-1]) else '') + '(best)'
header_line = line({