diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-09 02:06:30 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-09 20:49:07 +0530 |
commit | b922db9fe58f73aacd5dab4fe5ba1001d803a798 (patch) | |
tree | 0e0bd30e2b3b3f55ff2d3822e719f57c2c5cb2dd | |
parent | f2cad2e496843889274b79deb3f7f6e1c8c3f948 (diff) | |
download | hypervideo-pre-b922db9fe58f73aacd5dab4fe5ba1001d803a798.tar.lz hypervideo-pre-b922db9fe58f73aacd5dab4fe5ba1001d803a798.tar.xz hypervideo-pre-b922db9fe58f73aacd5dab4fe5ba1001d803a798.zip |
[http] Respect user-provided chunk size over extractor's
-rw-r--r-- | yt_dlp/downloader/http.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py index 9e79051ad..5d7c988c7 100644 --- a/yt_dlp/downloader/http.py +++ b/yt_dlp/downloader/http.py @@ -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 |