fix rewrite signature
This commit is contained in:
parent
1a3a99ec72
commit
f7f478415c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user