From f7f478415c4102dedd39a9f5507104dc8c8dc9d2 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 14 May 2021 16:50:35 +0200 Subject: [PATCH] fix rewrite signature --- stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream.py b/stream.py index dc54722..968d0b0 100755 --- a/stream.py +++ b/stream.py @@ -233,7 +233,7 @@ try: except Exception as e: logger.info(e) -async def rewrite(current, provider, proxy): +async def rewrite(current, proxy): ndata = None text = None try: @@ -346,7 +346,7 @@ class MainHandler(tornado.web.RequestHandler): logger.info(upstream) data = None if "mpegurl" in ctype.lower(): - data = rewrite(upstream, provider, proxy) + data = rewrite(upstream, proxy) self.set_header("Content-Type", "application/vnd.apple.mpegurl") self.write(data) else: