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

pull/1227/head
pukkandan 3 years ago
parent f2cad2e496
commit b922db9fe5
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -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

Loading…
Cancel
Save