From d12e9ca88236316f9adaeb5ff34ab01326476312 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 14 May 2021 15:52:22 +0200 Subject: [PATCH] derp --- stream.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/stream.py b/stream.py index 10e1983..0cdebfb 100755 --- a/stream.py +++ b/stream.py @@ -322,21 +322,6 @@ class MainHandler(tornado.web.RequestHandler): self.set_header("Content-Type", "application/vnd.apple.mpegurl") else: self.set_header("Content-Type", ctype) - ldata = {} - ldata["upstream"] = upstream - ldata["proxy"] = handler.proxy.proxy - ldata["proxied"] = isinstance(handler.proxy.proxy, str) - links = [ldata] - if isinstance(proxy_server, str): - try: - resp = requests.post(proxy_server, json=links) - if isinstance(resp.text, str): - new_links = json.loads(resp.text) - if isinstance(new_links, list) and len(new_links) == 1: - upstream = new_links.pop() - except Exception as e: - logger.info(e) - if data is None: if redir: upstream = await handler.proxy.proxy_url(upstream, None) self.redirect(upstream, status=303)