about summary refs log tree commit diff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-04 07:16:22 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-04 07:16:22 +0700
commit00c97e3e7ab592b795f36b547a938e65d40b3771 (patch)
tree951d15979a5b354d9adc428fde4adbf49732badf /youtube_dl/downloader
parentcf7259bc931874318f8abe142a89914b41b49236 (diff)
downloadyoutube-dl-00c97e3e7ab592b795f36b547a938e65d40b3771.tar.gz
youtube-dl-00c97e3e7ab592b795f36b547a938e65d40b3771.tar.xz
youtube-dl-00c97e3e7ab592b795f36b547a938e65d40b3771.zip
[downloader/http] Add ability to pass downloader options via info dict
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 6b4122f8d..b60a750ca 100644
--- a/youtube_dl/downloader/http.py
+++ b/youtube_dl/downloader/http.py
@@ -45,6 +45,7 @@ class HttpFD(FileDownloader):
 
         is_test = self.params.get('test', False)
         chunk_size = self._TEST_FILE_SIZE if is_test else (
+            info_dict.get('downloader_options', {}).get('http_chunk_size') or
             self.params.get('http_chunk_size') or 0)
 
         ctx.open_mode = 'wb'