diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index b7bec5d5a..23ade84eb 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -53,10 +53,11 @@ video, #my_video, .video-js, .vjs-default-skin <% fmt_stream.each_with_index do |fmt, i| %> " type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>"> <% end %> - <% captions.each do |caption| %> - " - label="<%= caption["name"]["simpleText"]%> "> - <% end %> + <% end %> + + <% captions.each do |caption| %> + " + label="<%= caption["name"]["simpleText"]%> "> <% end %> <% end %> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 0aacf91ba..1840642d7 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -64,11 +64,11 @@ " label="<%= caption["name"]["simpleText"]%>" <% if i == 0 %>default<% end %>> <% end %> - - <% captions.each do |caption| %> - " - label="<%= caption["name"]["simpleText"]%>"> - <% end %> + <% end %> + + <% captions.each do |caption| %> + " + label="<%= caption["name"]["simpleText"]%>"> <% end %> <% end %>