summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/views/watch.ecr9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index e3665917..90f94777 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -60,10 +60,11 @@
<% end %>
<% end %>
- <% preferred_captions.each_with_index do |caption, i| %>
- <track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>"
- label="<%= caption.name.simpleText %>" <% if i == 0 %>default<% end %>>
- <% end %>
+ <% end %>
+
+ <% preferred_captions.each_with_index do |caption, i| %>
+ <track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption.name.simpleText %>"
+ label="<%= caption.name.simpleText %>" <% if i == 0 %>default<% end %>>
<% end %>
<% captions.each do |caption| %>