Skip to content

Commit 39f2013

Browse files
dirkfGitHub Actions
authored and
GitHub Actions
committed
[downloader/external] Fix WgetFD proxy (rev 2)
From PR (defunct source), closes #29343. Matches yt-dlp/yt-dlp#3152 Thx former user kikuyan.
1 parent 2c36296 commit 39f2013

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

youtube_dl/downloader/external.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ def _make_cmd(self, tmpfilename, info_dict):
206206
retry[1] = '0'
207207
cmd += retry
208208
cmd += self._option('--bind-address', 'source_address')
209-
cmd += self._option('--proxy', 'proxy')
209+
proxy = self.params.get('proxy')
210+
if proxy:
211+
for var in ('http_proxy', 'https_proxy'):
212+
cmd += ['--execute', '%s=%s' % (var, proxy)]
210213
cmd += self._valueless_option('--no-check-certificate', 'nocheckcertificate')
211214
cmd += self._configuration_args()
212215
cmd += ['--', info_dict['url']]

0 commit comments

Comments
 (0)