fix rewrite signature

This commit is contained in:
Roy Olav Purser 2021-05-14 16:50:35 +02:00
parent 1a3a99ec72
commit f7f478415c
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -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: