From 305c622c76a2a80a9c84f5184045eaf3d1fa981c Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 14 May 2021 16:53:44 +0200 Subject: [PATCH] await rewrite --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 968d0b0..471b4b8 100755 --- a/stream.py +++ b/stream.py @@ -346,7 +346,7 @@ class MainHandler(tornado.web.RequestHandler): logger.info(upstream) data = None if "mpegurl" in ctype.lower(): - data = rewrite(upstream, proxy) + data = await rewrite(upstream, proxy) self.set_header("Content-Type", "application/vnd.apple.mpegurl") self.write(data) else: