fix rewrite signature
This commit is contained in:
parent
1a3a99ec72
commit
f7f478415c
@ -233,7 +233,7 @@ try:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
|
|
||||||
async def rewrite(current, provider, proxy):
|
async def rewrite(current, proxy):
|
||||||
ndata = None
|
ndata = None
|
||||||
text = None
|
text = None
|
||||||
try:
|
try:
|
||||||
@ -346,7 +346,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
logger.info(upstream)
|
logger.info(upstream)
|
||||||
data = None
|
data = None
|
||||||
if "mpegurl" in ctype.lower():
|
if "mpegurl" in ctype.lower():
|
||||||
data = rewrite(upstream, provider, proxy)
|
data = rewrite(upstream, proxy)
|
||||||
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
||||||
self.write(data)
|
self.write(data)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user