mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-19 20:34:09 -04:00
don't set http_proxy environment variable, because it affects things we don't want it to
This commit is contained in:
parent
923cd98652
commit
efa3cd6269
1 changed files with 4 additions and 2 deletions
|
@ -44,8 +44,10 @@ class BrozzlerWorker:
|
|||
}
|
||||
if self._proxy_server:
|
||||
ydl_opts["proxy"] = "http://{}".format(self._proxy_server)
|
||||
# see https://github.com/rg3/youtube-dl/issues/6087
|
||||
os.environ["http_proxy"] = "http://{}".format(self._proxy_server)
|
||||
## XXX (sometimes?) causes chrome debug websocket to go through
|
||||
## proxy. Maybe not needed thanks to hls_prefer_native.
|
||||
## # see https://github.com/rg3/youtube-dl/issues/6087
|
||||
## os.environ["http_proxy"] = "http://{}".format(self._proxy_server)
|
||||
self._ydl = youtube_dl.YoutubeDL(ydl_opts)
|
||||
|
||||
def _next_url(self, site):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue