projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5d7bda
)
[downloader/external] Respect --no-check-certificate for wget
author
Sergey M․
<dstftw@gmail.com>
Sat, 8 Aug 2015 13:21:05 +0000
(19:21 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 8 Aug 2015 13:21:05 +0000
(19:21 +0600)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index 30699934b63d60c3ec8d0261b4ffc55bd988ccbc..07ce59f7d9a993e5c6b03b349b5b7158ae32433a 100644
(file)
--- a/
youtube_dl/downloader/external.py
+++ b/
youtube_dl/downloader/external.py
@@
-51,6
+51,9
@@
class ExternalFD(FileDownloader):
return []
return [command_option, source_address]
return []
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=[]):
ex_args = self.params.get('external_downloader_args')
if ex_args is None:
def _configuration_args(self, default=[]):
ex_args = self.params.get('external_downloader_args')
if ex_args is None:
@@
-99,6
+102,7
@@
class WgetFD(ExternalFD):
for key, val in info_dict['http_headers'].items():
cmd += ['--header', '%s: %s' % (key, val)]
cmd += self._source_address('--bind-address')
for key, val in info_dict['http_headers'].items():
cmd += ['--header', '%s: %s' % (key, val)]
cmd += self._source_address('--bind-address')
+ cmd += self._no_check_certificate('--no-check-certificate')
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
return cmd
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
return cmd