mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 04:27:05 +01:00
[http] Respect user-provided chunk size over extractor's
This commit is contained in:
parent
f2cad2e496
commit
b922db9fe5
@ -48,8 +48,9 @@ class DownloadContext(dict):
|
|||||||
|
|
||||||
is_test = self.params.get('test', False)
|
is_test = self.params.get('test', False)
|
||||||
chunk_size = self._TEST_FILE_SIZE if is_test else (
|
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')
|
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.open_mode = 'wb'
|
||||||
ctx.resume_len = 0
|
ctx.resume_len = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user