[downloader/http] Add ability to pass downloader options via info dict
[youtube-dl] / youtube_dl / downloader / http.py
index 6b4122f8ded84e7c3f632471537f5a511eb62a85..b60a750ca43c9c4582e8646392ed772f6c7b362e 100644 (file)
@@ -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'