[http] Respect user-provided chunk size over extractor's

This commit is contained in:
pukkandan 2021-10-09 02:06:30 +05:30
parent f2cad2e496
commit b922db9fe5
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698
1 changed files with 2 additions and 1 deletions

View File

@ -48,8 +48,9 @@ class HttpFD(FileDownloader):
is_test = self.params.get('test', False)
chunk_size = self._TEST_FILE_SIZE if is_test else (
self.params.get('http_chunk_size') or
info_dict.get('downloader_options', {}).get('http_chunk_size')
or self.params.get('http_chunk_size') or 0)
or 0)
ctx.open_mode = 'wb'
ctx.resume_len = 0