Invidious is an alternative front-end to YouTube
Fix caption listings in embedded videos
Omar Roth54190d964563
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecrindex b28ce5f8..7c02e9e6 100644--- a/src/invidious/views/embed.ecr+++ b/src/invidious/views/embed.ecr@@ -51,15 +51,14 @@ video, #my_video, .video-js, .vjs-default-skin<% end %><% else %><% fmt_stream.each_with_index do |fmt, i| %>- <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>">-+ <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>">+ <% end %><% captions.each do |caption| %><track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"srclang="<%= caption["languageCode"] %>" label="<%= caption["name"]["simpleText"]%> "><% end %><% end %><% end %>-<% end %></video><script>