diff --git a/stream.py b/stream.py index b971f60..0cf9f29 100755 --- a/stream.py +++ b/stream.py @@ -29,7 +29,7 @@ class ProxyElem(): def stream(self): session = streamlink.Streamlink() 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("http-proxy", "socks5://" + self.proxy) return session