]> jfr.im git - yt-dlp.git/commitdiff
[aria2c] Lower `--min-split-size` for HTTP downloads
authorpukkandan <redacted>
Sun, 20 Jun 2021 02:25:54 +0000 (07:55 +0530)
committerpukkandan <redacted>
Sun, 20 Jun 2021 13:58:54 +0000 (19:28 +0530)
This makes downloading smaller files much faster

yt_dlp/downloader/external.py

index 954233232a9c59627fba334a6a269459694879bd..8a69b484700f8965d1cf81b3e1b925c5e7dd5031 100644 (file)
@@ -280,6 +280,8 @@ def _make_cmd(self, tmpfilename, info_dict):
                '--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():