1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 08:34:32 +01:00

Also pass "allow-overwrite" and "remove-control-file" options at beginning

This commit is contained in:
Crend King 2020-09-19 22:47:27 -07:00
parent 9b76e517aa
commit 7cf7d4d7c5

View File

@ -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)