Invidious is an alternative front-end to YouTube
Allow preferred captions to be specified with 'listen=1'
Omar Rothcfa76d21db37
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecrindex 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| %>