remove hls print again

This commit is contained in:
Roy Olav Purser 2021-05-14 18:20:45 +02:00
parent 818315e73d
commit fa8eec1769
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

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