From 00c97e3e7ab592b795f36b547a938e65d40b3771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 4 Feb 2018 07:16:22 +0700 Subject: [downloader/http] Add ability to pass downloader options via info dict --- youtube_dl/downloader/http.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube_dl/downloader/http.py') 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' -- cgit v1.2.3