mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -05: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
@ -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…
x
Reference in New Issue
Block a user