From 0645a5a376d8be1c4cebff1dd18e69ae212d4296 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 25 May 2021 10:35:54 +0200 Subject: [PATCH] add title --- backend/stream.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/stream.py b/backend/stream.py index 0f2e566..199338e 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -350,14 +350,13 @@ class MainHandler(tornado.web.RequestHandler): if script_file is not None and template_html is not None: meta = await handler.meta() meta_list = list(meta.items()) - title = handler.render_url - video_title = meta.get("og:title") + title = meta.get("og:title") data["script"] = script_file data["videojs_version"] = videojs_version data["chromecast_version"] = chromecast_version data["font_awesome_version"] = font_awesome_version data["custom_style"] = custom_style - rendered_html = template_html.generate(data=data, meta=meta, title=video_title) + rendered_html = template_html.generate(data=data, meta=meta_list, title=title) self.write(rendered_html) else: self.set_status(404) @@ -375,7 +374,7 @@ class MainHandler(tornado.web.RequestHandler): upstream = None if handler.provider == "nextcloud": - upstream = handler.upstream + upstream = urllib.parse.urljoin(handler.upstream, "download") else: upstream = await stream_providers.get_any(handler.upstream, handler.proxy, logger) if upstream is None: