about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-04 02:53:50 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-04 02:53:50 +0700
commitb54d4a5ce8443488dbb6735b0ea3e1b9cd6d72f7 (patch)
tree7c7e88cadfba9cd350086ec63b631f45690e02bb
parentdb157d2a2a9e1e5940ad457575c341c8bc5499ae (diff)
downloadyoutube-dl-b54d4a5ce8443488dbb6735b0ea3e1b9cd6d72f7.tar.gz
youtube-dl-b54d4a5ce8443488dbb6735b0ea3e1b9cd6d72f7.tar.xz
youtube-dl-b54d4a5ce8443488dbb6735b0ea3e1b9cd6d72f7.zip
Document http_chunk_size
-rwxr-xr-xyoutube_dl/YoutubeDL.py3
-rw-r--r--youtube_dl/downloader/common.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 97bd9c526..925d095de 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -298,7 +298,8 @@ class YoutubeDL(object):
     the downloader (see youtube_dl/downloader/common.py):
     nopart, updatetime, buffersize, ratelimit, min_filesize, max_filesize, test,
     noresizebuffer, retries, continuedl, noprogress, consoletitle,
-    xattr_set_filesize, external_downloader_args, hls_use_mpegts.
+    xattr_set_filesize, external_downloader_args, hls_use_mpegts,
+    http_chunk_size.
 
     The following options are used by the post processors:
     prefer_ffmpeg:     If True, use ffmpeg instead of avconv if both are available,
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index 75b8166c5..a7f62ae53 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -49,6 +49,9 @@ class FileDownloader(object):
     external_downloader_args:  A list of additional command-line arguments for the
                         external downloader.
     hls_use_mpegts:     Use the mpegts container for HLS videos.
+    http_chunk_size:    Size of a chunk for chunk-based HTTP downloading.May be
+                        useful for bypassing bandwidth throttling imposed by
+                        a webserver (experimental)
 
     Subclasses of this one must re-define the real_download method.
     """