aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/embed.html
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-29 21:14:50 -0700
committerJesús <heckyel@hyperbola.info>2021-08-29 23:24:32 -0500
commita7527986c821d9766bdc3907ed6ffeaf7e62c18d (patch)
tree5f85364b68a12ccb4946bd522ebd84714a1d0f7b /youtube/templates/embed.html
parent00c812ff4a3f5c7685a47885916b4bcb3a2c01d2 (diff)
downloadyt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.tar.lz
yt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.tar.xz
yt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.zip
Fix embed page broken due to changes to jinja variables
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates/embed.html')
-rw-r--r--youtube/templates/embed.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube/templates/embed.html b/youtube/templates/embed.html
index 46d58fe..026afb1 100644
--- a/youtube/templates/embed.html
+++ b/youtube/templates/embed.html
@@ -37,9 +37,9 @@
<body>
<video id="js-video-player" controls autofocus onmouseleave="{{ title }}"
oncontextmenu="{{ title }}" onmouseenter="{{ title }}" title="{{ title }}">
- {% for video_source in video_sources %}
- <source src="{{ video_source['src'] }}" type="{{ video_source['type'] }}">
- {% endfor %}
+ {% if uni_sources %}
+ <source src="{{ uni_sources[uni_idx]['url'] }}" type="{{ uni_sources[uni_idx]['type'] }}" data-res="{{ uni_sources[uni_idx]['quality'] }}">
+ {% endif %}
{% for source in subtitle_sources %}
{% if source['on'] %}
<track label="{{ source['label'] }}" src="{{ source['url'] }}" kind="subtitles" srclang="{{ source['srclang'] }}" default>