summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-07 11:41:07 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-07 11:41:07 -0500
commitcfa76d21db37e1e252a360f81151a472cade8476 (patch)
tree15169cd1fc15885a1ede30bfa6691fe4a9eb5c5a
parent47a284e378080675a4dbcdc4fa3a2c6401fec19a (diff)
downloadinvidious-cfa76d21db37e1e252a360f81151a472cade8476.tar.gz
invidious-cfa76d21db37e1e252a360f81151a472cade8476.tar.bz2
invidious-cfa76d21db37e1e252a360f81151a472cade8476.zip
Allow preferred captions to be specified with 'listen=1'
-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| %>