Skip to content

A feature-rich command-line audio/video downloader

[downloader/external] Respect mtime option for aria2c (#22242)

telephono71f47617c884
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index acdb277122..c31f8910ad 100644
--- a/youtube_dl/downloader/external.py
+++ b/youtube_dl/downloader/external.py
@@ -194,6 +194,7 @@ class Aria2cFD(ExternalFD):
cmd += self._option('--interface', 'source_address')
cmd += self._option('--all-proxy', 'proxy')
cmd += self._bool_option('--check-certificate', 'nocheckcertificate', 'false', 'true', '=')
+ cmd += self._bool_option('--remote-time', 'updatetime', 'true', 'false', '=')
cmd += ['--', info_dict['url']]
return cmd