From 7d821b0ea76585c645ba342ed1cf46d6e02a328f Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 14:13:26 +0200 Subject: [PATCH] add origin to oembed --- frontend/index.html | 2 +- stream.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 2419d84..e239efc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,7 +1,7 @@ - + diff --git a/stream.py b/stream.py index 3a45d93..a0b57d5 100755 --- a/stream.py +++ b/stream.py @@ -72,7 +72,7 @@ if icecast_server is not None and stream_server is not None: template_html = None template_js = None -template_embed = tornado.template.Template('') +template_embed = tornado.template.Template('') videojs_version = None castjs_version = None @@ -188,7 +188,7 @@ class MainHandler(tornado.web.RequestHandler): embed_json["version"] = "1.0" embed_json["type"] = "video" embed_json["html"] = f'' - embed_json["html"] = str(template_embed.generate(path=self.request.path, provider=provider), "utf-8") + embed_json["html"] = str(template_embed.generate(origin=stream_server, path=self.request.path, provider=provider), "utf-8") self.set_header("Content-Type", "application/json+oembed; charset=utf-8") self.write(json.dumps(embed_json))