aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorCosty Petrisor <costy.petrisor@gmail.com>2016-05-01 12:34:11 +0000
committerSergey M․ <dstftw@gmail.com>2017-01-29 00:00:45 +0700
commitacbb2374bce27eda16764b80832f88cf833a51e5 (patch)
treedf4854de1dea45a4290456d0acb5ed34f9c3552d /youtube_dl/options.py
parent4edeac5bfae76966fd14f636bd68850ea0403ece (diff)
added --autonumber-start NUMBER as a command line option to be able to offset the index at which autonumber formats filenames
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 09c9387ca..571525434 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -664,6 +664,10 @@ def parseOpts(overrideArguments=None):
dest='autonumber_size', metavar='NUMBER',
help='Specify the number of digits in %(autonumber)s when it is present in output filename template or --auto-number option is given')
filesystem.add_option(
+ '--autonumber-start',
+ dest='autonumber_start', metavar='NUMBER', type="int", default=1,
+ help='Specify the start value for the %(autonumber)s counter. Defaults to 1.')
+ filesystem.add_option(
'--restrict-filenames',
action='store_true', dest='restrictfilenames', default=False,
help='Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames')