This commit is contained in:
CrendKing 2020-10-22 17:59:23 +02:00 committed by GitHub
commit ad9d59a61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -182,7 +182,10 @@ class Aria2cFD(ExternalFD):
AVAILABLE_OPT = '-v'
def _make_cmd(self, tmpfilename, info_dict):
cmd = [self.exe, '-c']
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)