mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Merge 565999e58a
into 05c8023a27
This commit is contained in:
commit
1a2261346a
1 changed files with 8 additions and 3 deletions
|
@ -293,11 +293,11 @@ def _call_downloader(self, tmpfilename, info_dict):
|
||||||
return super()._call_downloader(tmpfilename, info_dict)
|
return super()._call_downloader(tmpfilename, info_dict)
|
||||||
|
|
||||||
def _make_cmd(self, tmpfilename, info_dict):
|
def _make_cmd(self, tmpfilename, info_dict):
|
||||||
cmd = [self.exe, '-c', '--no-conf',
|
cmd = [self.exe, '--no-conf', '--auto-save-interval=10',
|
||||||
'--console-log-level=warn', '--summary-interval=0', '--download-result=hide',
|
'--console-log-level=warn', '--summary-interval=0', '--download-result=hide',
|
||||||
'--http-accept-gzip=true', '--file-allocation=none', '-x16', '-j16', '-s16']
|
'--http-accept-gzip=true', '--file-allocation=none', '-x16', '-j16', '-s16']
|
||||||
if 'fragments' in info_dict:
|
if 'fragments' in info_dict:
|
||||||
cmd += ['--allow-overwrite=true', '--allow-piece-length-change=true']
|
cmd += ['--allow-piece-length-change=true']
|
||||||
else:
|
else:
|
||||||
cmd += ['--min-split-size', '1M']
|
cmd += ['--min-split-size', '1M']
|
||||||
|
|
||||||
|
@ -312,7 +312,13 @@ def _make_cmd(self, tmpfilename, info_dict):
|
||||||
cmd += self._bool_option('--check-certificate', 'nocheckcertificate', 'false', 'true', '=')
|
cmd += self._bool_option('--check-certificate', 'nocheckcertificate', 'false', 'true', '=')
|
||||||
cmd += self._bool_option('--remote-time', 'updatetime', 'true', 'false', '=')
|
cmd += self._bool_option('--remote-time', 'updatetime', 'true', 'false', '=')
|
||||||
cmd += self._bool_option('--show-console-readout', 'noprogress', 'false', 'true', '=')
|
cmd += self._bool_option('--show-console-readout', 'noprogress', 'false', 'true', '=')
|
||||||
|
cmd += self._bool_option('--remove-control-file', 'continuedl', 'false', 'true', '=')
|
||||||
cmd += self._configuration_args()
|
cmd += self._configuration_args()
|
||||||
|
# do not allow changing these flags
|
||||||
|
cmd += ['--allow-overwrite=true']
|
||||||
|
cmd += ['--always-resume=false']
|
||||||
|
cmd += ['--auto-file-renaming=false']
|
||||||
|
cmd += ['--force-save=false']
|
||||||
|
|
||||||
if '__rpc' in info_dict:
|
if '__rpc' in info_dict:
|
||||||
cmd += [
|
cmd += [
|
||||||
|
@ -331,7 +337,6 @@ def _make_cmd(self, tmpfilename, info_dict):
|
||||||
cmd += ['--dir', self._aria2c_filename(dn) + os.path.sep]
|
cmd += ['--dir', self._aria2c_filename(dn) + os.path.sep]
|
||||||
if 'fragments' not in info_dict:
|
if 'fragments' not in info_dict:
|
||||||
cmd += ['--out', self._aria2c_filename(os.path.basename(tmpfilename))]
|
cmd += ['--out', self._aria2c_filename(os.path.basename(tmpfilename))]
|
||||||
cmd += ['--auto-file-renaming=false']
|
|
||||||
|
|
||||||
if 'fragments' in info_dict:
|
if 'fragments' in info_dict:
|
||||||
cmd += ['--uri-selector=inorder']
|
cmd += ['--uri-selector=inorder']
|
||||||
|
|
Loading…
Reference in a new issue