diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-09 05:53:15 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-09 22:32:00 +0530 |
commit | b5ae35ee6d3f913898770b8c74ee5f5e5cc33560 (patch) | |
tree | 522e8c204c63433978cf736c4638aee76a11a3e5 /yt_dlp/downloader/http.py | |
parent | 4e3b637d5be70b92ee511743405f3c907fed20f6 (diff) | |
download | hypervideo-pre-b5ae35ee6d3f913898770b8c74ee5f5e5cc33560.tar.lz hypervideo-pre-b5ae35ee6d3f913898770b8c74ee5f5e5cc33560.tar.xz hypervideo-pre-b5ae35ee6d3f913898770b8c74ee5f5e5cc33560.zip |
[cleanup] Misc cleanup
Diffstat (limited to 'yt_dlp/downloader/http.py')
-rw-r--r-- | yt_dlp/downloader/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py index 5d7c988c7..704ae6f5a 100644 --- a/yt_dlp/downloader/http.py +++ b/yt_dlp/downloader/http.py @@ -48,8 +48,8 @@ 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') + self.params.get('http_chunk_size') + or info_dict.get('downloader_options', {}).get('http_chunk_size') or 0) ctx.open_mode = 'wb' |