aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-01-28 13:21:45 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-03 23:08:58 +0700
commitba515388b8dc608a07b4390b601e227c1fce6fa9 (patch)
tree86675008d6df5287205d732b22c559582b9a44c5 /youtube_dl/options.py
parente2e18694dbcd5963f2044837af0e566667d14347 (diff)
downloadyoutube-dl-ba515388b8dc608a07b4390b601e227c1fce6fa9.tar.xz
Introduce --http-chunk-size
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 4c0455044..7d1bbc021 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -479,6 +479,11 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='noresizebuffer', default=False,
help='Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE.')
downloader.add_option(
+ '--http-chunk-size',
+ dest='http_chunk_size', metavar='SIZE', default=None,
+ help='Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). '
+ 'May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)')
+ downloader.add_option(
'--test',
action='store_true', dest='test', default=False,
help=optparse.SUPPRESS_HELP)