Skip to content

Commit

Permalink
[downloader/external] Fix WgetFD proxy (rev 2)
Browse files Browse the repository at this point in the history
From PR (defunct source), closes #29343.
Matches yt-dlp/yt-dlp#3152
Thx former user kikuyan.
  • Loading branch information
dirkf committed Feb 21, 2024
1 parent 7687389 commit 48ddab1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/downloader/external.py
Expand Up @@ -206,7 +206,10 @@ def _make_cmd(self, tmpfilename, info_dict):
retry[1] = '0'
cmd += retry
cmd += self._option('--bind-address', 'source_address')
cmd += self._option('--proxy', 'proxy')
proxy = self.params.get('proxy')
if proxy:
for var in ('http_proxy', 'https_proxy'):
cmd += ['--execute', '%s=%s' % (var, proxy)]
cmd += self._valueless_option('--no-check-certificate', 'nocheckcertificate')
cmd += self._configuration_args()
cmd += ['--', info_dict['url']]
Expand Down

0 comments on commit 48ddab1

Please sign in to comment.