mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-07-01 07:49:52 +00:00
Compare commits
2 Commits
087cb24bb2
...
565999e58a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
565999e58a | ||
|
|
670da95bac |
@ -269,7 +269,6 @@ class WgetFD(ExternalFD):
|
|||||||
class Aria2cFD(ExternalFD):
|
class Aria2cFD(ExternalFD):
|
||||||
AVAILABLE_OPT = '-v'
|
AVAILABLE_OPT = '-v'
|
||||||
SUPPORTED_PROTOCOLS = ('http', 'https', 'ftp', 'ftps', 'dash_frag_urls', 'm3u8_frag_urls')
|
SUPPORTED_PROTOCOLS = ('http', 'https', 'ftp', 'ftps', 'dash_frag_urls', 'm3u8_frag_urls')
|
||||||
_CAPTURE_STDERR = False
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def supports_manifest(manifest):
|
def supports_manifest(manifest):
|
||||||
@ -294,9 +293,7 @@ class Aria2cFD(ExternalFD):
|
|||||||
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, '--no-conf', '--stderr=true',
|
cmd = [self.exe, '--no-conf', '--auto-save-interval=10',
|
||||||
'--auto-save-interval=10', '--allow-overwrite=true', '--always-resume=false',
|
|
||||||
'--auto-file-renaming=false', '--force-save=false',
|
|
||||||
'--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:
|
||||||
@ -317,6 +314,11 @@ class Aria2cFD(ExternalFD):
|
|||||||
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._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 += [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user