diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-04 17:55:27 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-04 17:55:27 -0500 |
| commit | 54190d96456364854d659045011a4884f1e0c6e1 (patch) | |
| tree | b3068ade596bec75851a5dbff7968c1f2933ab76 /src | |
| parent | e7cad23bb9118e7bdc0b1697f317c9813f68e516 (diff) | |
| download | invidious-54190d96456364854d659045011a4884f1e0c6e1.tar.gz invidious-54190d96456364854d659045011a4884f1e0c6e1.tar.bz2 invidious-54190d96456364854d659045011a4884f1e0c6e1.zip | |
Fix caption listings in embedded videos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/embed.ecr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index 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> |
