This commit is contained in:
Roy Olav Purser 2021-05-13 10:26:59 +02:00
parent e9f9bc0fbf
commit 8d29d58f76
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -29,7 +29,7 @@ class ProxyElem():
def stream(self): def stream(self):
session = streamlink.Streamlink() session = streamlink.Streamlink()
session.set_option("http-timeout", 2.0) session.set_option("http-timeout", 2.0)
is self.proxy is not None: if self.proxy is not None:
session.set_option("https-proxy", "socks5://" + self.proxy) session.set_option("https-proxy", "socks5://" + self.proxy)
session.set_option("http-proxy", "socks5://" + self.proxy) session.set_option("http-proxy", "socks5://" + self.proxy)
return session return session