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: