aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/external.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-03 22:25:33 +0100
committerremitamine <remitamine@gmail.com>2015-09-03 22:25:33 +0100
commite7a8c3032d8610bc429b6318678387433728b2a9 (patch)
tree4e2e95f685e9704fb4795295c53cde72dc147cdc /youtube_dl/downloader/external.py
parent725d1c58aa25da8640eef8d62b9451cbd6762169 (diff)
[downloader/external] Respect --no-check-certificate for curl and aria2c and --proxy for curl
Diffstat (limited to 'youtube_dl/downloader/external.py')
-rw-r--r--youtube_dl/downloader/external.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 6c310346c..072ac3a46 100644
--- a/youtube_dl/downloader/external.py
+++ b/youtube_dl/downloader/external.py
@@ -47,7 +47,7 @@ class ExternalFD(FileDownloader):
def _option(self, command_option, param):
param = self.params.get(param)
- if param is None:
+ if param is None or param is False:
return []
if isinstance(param, bool):
return [command_option]
@@ -80,6 +80,8 @@ class CurlFD(ExternalFD):
for key, val in info_dict['http_headers'].items():
cmd += ['--header', '%s: %s' % (key, val)]
cmd += self._option('--interface', 'source_address')
+ cmd += self._option('--proxy', 'proxy')
+ cmd += self._option('--insecure', 'nocheckcertificate')
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
return cmd
@@ -121,6 +123,7 @@ class Aria2cFD(ExternalFD):
cmd += ['--header', '%s: %s' % (key, val)]
cmd += self._option('--interface', 'source_address')
cmd += self._option('--all-proxy', 'proxy')
+ cmd += self._option('--check-certificate=false', 'nocheckcertificate')
cmd += ['--', info_dict['url']]
return cmd