aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-08-27 00:59:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-08-27 00:59:36 +0530
commit691d5823d6ff72b813eb34ede8009b70bebd73da (patch)
treeffa11a3b8caa6c0bd5456114859dcf673123ab6a
parentc311988d19abaa35e935617df3bcfc42ac3aeb61 (diff)
downloadhypervideo-pre-691d5823d6ff72b813eb34ede8009b70bebd73da.tar.lz
hypervideo-pre-691d5823d6ff72b813eb34ede8009b70bebd73da.tar.xz
hypervideo-pre-691d5823d6ff72b813eb34ede8009b70bebd73da.zip
[aria2c] Obey `--rate-limit`
-rw-r--r--yt_dlp/downloader/external.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py
index fdfabb38d..3dddedb14 100644
--- a/yt_dlp/downloader/external.py
+++ b/yt_dlp/downloader/external.py
@@ -288,6 +288,7 @@ class Aria2cFD(ExternalFD):
if info_dict.get('http_headers') is not None:
for key, val in info_dict['http_headers'].items():
cmd += ['--header', '%s: %s' % (key, val)]
+ cmd += self._option('--max-overall-download-limit', 'ratelimit')
cmd += self._option('--interface', 'source_address')
cmd += self._option('--all-proxy', 'proxy')
cmd += self._bool_option('--check-certificate', 'nocheckcertificate', 'false', 'true', '=')