From 7a5f3b69405167a4f608a93e1d98cd19517d3fa0 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sun, 9 May 2021 11:39:37 +0200 Subject: [PATCH] correct proxy --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 41ebc7a..b0bb9df 100755 --- a/stream.py +++ b/stream.py @@ -50,7 +50,7 @@ if icecast_server is not None and stream_server is not None: def rewrite(current, provider): proxy_req = proxies_req.get(provider) - proxy = proxies.get(provider) + proxy = proxies_raw.get(provider) resp = requests.head(current, proxies=proxy_req) ctype = resp.headers.get("Content-Type") print(ctype)