diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-20 07:55:54 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-20 19:28:54 +0530 |
commit | ff0f78e1fef082b7702f3ce783381d3609415649 (patch) | |
tree | ded3f0dab1498219185eb15a5e412649a0712844 | |
parent | 7e067091e87fafbd7ac2d8b4e170c8cba7ec7ace (diff) | |
download | hypervideo-pre-ff0f78e1fef082b7702f3ce783381d3609415649.tar.lz hypervideo-pre-ff0f78e1fef082b7702f3ce783381d3609415649.tar.xz hypervideo-pre-ff0f78e1fef082b7702f3ce783381d3609415649.zip |
[aria2c] Lower `--min-split-size` for HTTP downloads
This makes downloading smaller files much faster
-rw-r--r-- | yt_dlp/downloader/external.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py index 954233232..8a69b4847 100644 --- a/yt_dlp/downloader/external.py +++ b/yt_dlp/downloader/external.py @@ -280,6 +280,8 @@ class Aria2cFD(ExternalFD): '--file-allocation=none', '-x16', '-j16', '-s16'] if 'fragments' in info_dict: cmd += ['--allow-overwrite=true', '--allow-piece-length-change=true'] + else: + cmd += ['--min-split-size', '1M'] if info_dict.get('http_headers') is not None: for key, val in info_dict['http_headers'].items(): |