mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:10:09 +01:00
[downloader/external] Respect --no-check-certificate for wget
This commit is contained in:
parent
d5d7bdaeb5
commit
154655a85a
@ -51,6 +51,9 @@ def _source_address(self, command_option):
|
|||||||
return []
|
return []
|
||||||
return [command_option, source_address]
|
return [command_option, source_address]
|
||||||
|
|
||||||
|
def _no_check_certificate(self, command_option):
|
||||||
|
return [command_option] if self.params.get('nocheckcertificate', False) else []
|
||||||
|
|
||||||
def _configuration_args(self, default=[]):
|
def _configuration_args(self, default=[]):
|
||||||
ex_args = self.params.get('external_downloader_args')
|
ex_args = self.params.get('external_downloader_args')
|
||||||
if ex_args is None:
|
if ex_args is None:
|
||||||
@ -99,6 +102,7 @@ def _make_cmd(self, tmpfilename, info_dict):
|
|||||||
for key, val in info_dict['http_headers'].items():
|
for key, val in info_dict['http_headers'].items():
|
||||||
cmd += ['--header', '%s: %s' % (key, val)]
|
cmd += ['--header', '%s: %s' % (key, val)]
|
||||||
cmd += self._source_address('--bind-address')
|
cmd += self._source_address('--bind-address')
|
||||||
|
cmd += self._no_check_certificate('--no-check-certificate')
|
||||||
cmd += self._configuration_args()
|
cmd += self._configuration_args()
|
||||||
cmd += ['--', info_dict['url']]
|
cmd += ['--', info_dict['url']]
|
||||||
return cmd
|
return cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user