more print
This commit is contained in:
parent
77d0de7ef0
commit
afe5195ef0
@ -153,9 +153,10 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
else:
|
else:
|
||||||
self.handle_stream(provider, write)
|
self.handle_stream(provider, write)
|
||||||
else:
|
else:
|
||||||
|
print("provider missing")
|
||||||
self.set_status(404)
|
self.set_status(404)
|
||||||
if write:
|
if write:
|
||||||
self.write("Stream not found.")
|
self.write("Stream not found. (provider missing)")
|
||||||
|
|
||||||
def handle_render(self, provider, write):
|
def handle_render(self, provider, write):
|
||||||
if template_js is not None and template_html is not None:
|
if template_js is not None and template_html is not None:
|
||||||
@ -212,9 +213,10 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
if upstream is None:
|
if upstream is None:
|
||||||
|
print(f'invalid provider ({provider})')
|
||||||
self.set_status(404)
|
self.set_status(404)
|
||||||
if write:
|
if write:
|
||||||
self.write("Stream not found.")
|
self.write("Stream not found. (invalid provider)")
|
||||||
else:
|
else:
|
||||||
ctype = upstream_type(upstream, proxy)
|
ctype = upstream_type(upstream, proxy)
|
||||||
data = None
|
data = None
|
||||||
|
Loading…
Reference in New Issue
Block a user