projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f3b21e
)
[options] Add --yes-playlist as inverse of --no-playlist (Fixes #5051)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Feb 2015 16:25:02 +0000
(17:25 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Feb 2015 16:25:02 +0000
(17:25 +0100)
youtube_dl/options.py
patch
|
blob
|
history
diff --git
a/youtube_dl/options.py
b/youtube_dl/options.py
index 5c2d153b13b9e060e4f5b4d1d9991d10a72413c4..886ce96132d4ec6b67b3bf3114425463f6687597 100644
(file)
--- a/
youtube_dl/options.py
+++ b/
youtube_dl/options.py
@@
-272,6
+272,10
@@
def parseOpts(overrideArguments=None):
'--no-playlist',
action='store_true', dest='noplaylist', default=False,
help='If the URL refers to a video and a playlist, download only the video.')
+ selection.add_option(
+ '--yes-playlist',
+ action='store_false', dest='noplaylist', default=False,
+ help='If the URL refers to a video and a playlist, download the playlist.')
selection.add_option(
'--age-limit',
metavar='YEARS', dest='age_limit', default=None, type=int,