remove hls print again
This commit is contained in:
parent
818315e73d
commit
fa8eec1769
@ -172,7 +172,6 @@ class UpstreamHandler():
|
||||
data = []
|
||||
try:
|
||||
embed_url = f'https://noembed.com/embed?url={self.upstream_safe}'
|
||||
logger.info(embed_url)
|
||||
async with self.proxy.session() as session:
|
||||
resp = await session.get(embed_url)
|
||||
text = await resp.text()
|
||||
@ -345,7 +344,6 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
data = None
|
||||
if "mpegurl" in ctype.lower():
|
||||
data = await rewrite(upstream, handler.proxy)
|
||||
logger.info(data)
|
||||
if isinstance(data, str):
|
||||
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
||||
self.write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user