From 7cf7d4d7c5bfc6345a524871bf05015627951792 Mon Sep 17 00:00:00 2001 From: Crend King <975235+CrendKing@users.noreply.github.com> Date: Sat, 19 Sep 2020 22:47:27 -0700 Subject: [PATCH] Also pass "allow-overwrite" and "remove-control-file" options at beginning --- youtube_dl/downloader/external.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 3d5e08234..4177fd3af 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -184,6 +184,8 @@ class Aria2cFD(ExternalFD): def _make_cmd(self, tmpfilename, info_dict): cmd = [self.exe] cmd += self._bool_option('--continue', 'continuedl', separator='=') + cmd += self._bool_option('--allow-overwrite', 'continuedl', 'false', 'true', separator='=') + cmd += self._bool_option('--remove-control-file', 'continuedl', 'false', 'true', separator='=') cmd += self._configuration_args([ '--min-split-size', '1M', '--max-connection-per-server', '4']) dn = os.path.dirname(tmpfilename)