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 = [] data = []
try: try:
embed_url = f'https://noembed.com/embed?url={self.upstream_safe}' embed_url = f'https://noembed.com/embed?url={self.upstream_safe}'
logger.info(embed_url)
async with self.proxy.session() as session: async with self.proxy.session() as session:
resp = await session.get(embed_url) resp = await session.get(embed_url)
text = await resp.text() text = await resp.text()
@ -345,7 +344,6 @@ class MainHandler(tornado.web.RequestHandler):
data = None data = None
if "mpegurl" in ctype.lower(): if "mpegurl" in ctype.lower():
data = await rewrite(upstream, handler.proxy) data = await rewrite(upstream, handler.proxy)
logger.info(data)
if isinstance(data, str): if isinstance(data, str):
self.set_header("Content-Type", "application/vnd.apple.mpegurl") self.set_header("Content-Type", "application/vnd.apple.mpegurl")
self.write(data) self.write(data)