]> jfr.im git - yt-dlp.git/commitdiff
[aria2c] Obey `--rate-limit`
authorpukkandan <redacted>
Thu, 26 Aug 2021 19:29:36 +0000 (00:59 +0530)
committerpukkandan <redacted>
Thu, 26 Aug 2021 19:29:36 +0000 (00:59 +0530)
yt_dlp/downloader/external.py

index fdfabb38da1b2dbdc27c16f061dac8b96c859e79..3dddedb14fadc187f4c314e905c73f0986712ac4 100644 (file)
@@ -288,6 +288,7 @@ def _make_cmd(self, tmpfilename, info_dict):
         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', '=')