[downloader/http] Add ability to pass downloader options via info dict
This commit is contained in:
parent
cf7259bc93
commit
00c97e3e7a
2 changed files with 3 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue