Browse Source

Document http_chunk_size

Sergey M․ 7 years ago
parent
commit
b54d4a5ce8
2 changed files with 5 additions and 1 deletions
  1. 2 1
      youtube_dl/YoutubeDL.py
  2. 3 0
      youtube_dl/downloader/common.py

+ 2 - 1
youtube_dl/YoutubeDL.py

@@ -298,7 +298,8 @@ class YoutubeDL(object):
     the downloader (see youtube_dl/downloader/common.py):
     the downloader (see youtube_dl/downloader/common.py):
     nopart, updatetime, buffersize, ratelimit, min_filesize, max_filesize, test,
     nopart, updatetime, buffersize, ratelimit, min_filesize, max_filesize, test,
     noresizebuffer, retries, continuedl, noprogress, consoletitle,
     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:
     The following options are used by the post processors:
     prefer_ffmpeg:     If True, use ffmpeg instead of avconv if both are available,
     prefer_ffmpeg:     If True, use ffmpeg instead of avconv if both are available,

+ 3 - 0
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_args:  A list of additional command-line arguments for the
                         external downloader.
                         external downloader.
     hls_use_mpegts:     Use the mpegts container for HLS videos.
     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.
     Subclasses of this one must re-define the real_download method.
     """
     """