set data to none

This commit is contained in:
Roy Olav Purser 2021-05-12 00:17:44 +02:00
parent 2d0d9a920e
commit 5d5a087c50
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -202,6 +202,7 @@ class MainHandler(tornado.web.RequestHandler):
self.write("Stream not found.") self.write("Stream not found.")
else: else:
ctype = upstream_type(upstream, proxy) ctype = upstream_type(upstream, proxy)
data = None
if "mpgurl" in ctype: if "mpgurl" in ctype:
data = rewrite(upstream, provider, proxy) data = rewrite(upstream, provider, proxy)
else: else: