From e1ef84153a1bc07849c17566fad7d5665e327fa6 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 15:16:40 +0200 Subject: [PATCH] set dimensions on oembed --- stream.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 1afe4bb..96447bd 100755 --- a/stream.py +++ b/stream.py @@ -193,8 +193,10 @@ class MainHandler(tornado.web.RequestHandler): embed_json = {} embed_json["version"] = "1.0" embed_json["type"] = "video" + embed_json["width"] = "640" + embed_json["height"] = "360" embed_json["html"] = str(template_embed.generate(origin=origin, provider=provider), "utf-8") - self.set_header("Content-Type", "application/json+oembed; charset=utf-8") + self.set_header("Content-Type", "application/json; charset=utf-8") self.write(json.dumps(embed_json)) def handle_stream(self, provider, write):