aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-08 19:21:05 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-08 19:21:05 +0600
commit154655a85ae8b7740aa9fe7821544050fd65641b (patch)
treeff4f9570c9e489616066bcc806c2a95d524301b1
parentd5d7bdaeb517f389fff5a6557f072f3586e3c440 (diff)
[downloader/external] Respect --no-check-certificate for wget
-rw-r--r--youtube_dl/downloader/external.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 30699934b..07ce59f7d 100644
--- 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]
+ 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:
@@ -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')
+ cmd += self._no_check_certificate('--no-check-certificate')
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
return cmd