aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-25 04:24:55 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-25 04:24:55 +0100
commitc14e88f0f561c5ac0a1cb9e6764fe4702bd9f7ca (patch)
treeac412e62cae7f181f2988301d838339355066dc5 /youtube_dl/options.py
parent8940b8608e567dba09b3ea146b89b297190ec6d6 (diff)
downloadyoutube-dl-c14e88f0f561c5ac0a1cb9e6764fe4702bd9f7ca.tar.xz
[YoutubeDL] Add --playlist-items option (Fixes #2662)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index a3b012ddb..872835295 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -201,6 +201,10 @@ def parseOpts(overrideArguments=None):
dest='playlistend', metavar='NUMBER', default=None, type=int,
help='playlist video to end at (default is last)')
selection.add_option(
+ '--playlist-items',
+ dest='playlist_items', metavar='ITEM_SPEC', default=None,
+ help='playlist video items to download. Specify indices of the videos in the playlist seperated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.')
+ selection.add_option(
'--match-title',
dest='matchtitle', metavar='REGEX',
help='download only matching titles (regex or caseless sub-string)')