From 39375d747841b797cdc0f44f57cf0b4744f6f04f Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 16:20:14 +0200 Subject: [PATCH] optional height and width --- stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream.py b/stream.py index 1999a3c..ef0fc33 100755 --- a/stream.py +++ b/stream.py @@ -190,8 +190,8 @@ class MainHandler(tornado.web.RequestHandler): self.set_status(404) self.write("HTML template missing.") def handle_embed(self, provider): - width = self.get_query_argument("maxwidth") - height = self.get_query_argument("maxheight") + width = self.get_query_argument("maxwidth", None) + height = self.get_query_argument("maxheight", None) if isinstance(width, str) and isinstance(height, str): pass if isinstance(width, str):