diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-29 21:44:08 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 21:44:08 -0500 |
commit | ee581c56a3676936110bbcca8bc755f5adb59b6d (patch) | |
tree | 8f01c6f4a82f0791629c6236cf88ec9db280ebca | |
parent | 5ff216d1ba30e80859cd9d02b50671d31e1678bb (diff) | |
download | yt-local-ee581c56a3676936110bbcca8bc755f5adb59b6d.tar.lz yt-local-ee581c56a3676936110bbcca8bc755f5adb59b6d.tar.xz yt-local-ee581c56a3676936110bbcca8bc755f5adb59b6d.zip |
fix missing data variable
-rw-r--r-- | youtube/templates/base.html | 8 | ||||
-rw-r--r-- | youtube/templates/embed.html | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 4ab722d..8795027 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -13,6 +13,14 @@ {% block style %} {{ style }} {% endblock %} + + {% if js_data %} + <script> + // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + data = {{ js_data|tojson }}; + // @license-end + </script> + {% endif %} </head> <body> diff --git a/youtube/templates/embed.html b/youtube/templates/embed.html index 6a2998b..46d58fe 100644 --- a/youtube/templates/embed.html +++ b/youtube/templates/embed.html @@ -26,6 +26,13 @@ display: none !important; } </style> + {% if js_data %} + <script> + // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + data = {{ js_data|tojson }}; + // @license-end + </script> + {% endif %} </head> <body> <video id="js-video-player" controls autofocus onmouseleave="{{ title }}" |