From ff0f78e1fef082b7702f3ce783381d3609415649 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 20 Jun 2021 07:55:54 +0530 Subject: [PATCH] [aria2c] Lower `--min-split-size` for HTTP downloads This makes downloading smaller files much faster --- yt_dlp/downloader/external.py | 2 ++ 1 file changed, 2 insertions(+) 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():