diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index c31f8910a..4177fd3af 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -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)