diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-05 10:38:01 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-05 10:38:01 -0500 |
| commit | 93e12d94fc228987c304e6b126e5c629871dbd6b (patch) | |
| tree | 4881779c3fac12c3969e6799a9e423b7a588b076 | |
| parent | 044a57ef344dc60f0511cbda080d4166f2a4220f (diff) | |
| download | invidious-93e12d94fc228987c304e6b126e5c629871dbd6b.tar.gz invidious-93e12d94fc228987c304e6b126e5c629871dbd6b.tar.bz2 invidious-93e12d94fc228987c304e6b126e5c629871dbd6b.zip | |
Remove 'codecs' from source types
| -rw-r--r-- | src/invidious/views/components/player.ecr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 38a4bbe1..9ce47053 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -8,14 +8,14 @@ <% else %> <% if params[:listen] %> <% audio_streams.each_with_index do |fmt, i| %> - <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>"> + <source src="<%= fmt["url"] %>" type='<%= fmt["type"].split(";")[0] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>"> <% end %> <% else %> <% fmt_stream.each_with_index do |fmt, i| %> <% if params[:quality] %> - <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= params[:quality] == fmt["label"].split(" - ")[0] %>"> + <source src="<%= fmt["url"] %>" type='<%= fmt["type"].split(";")[0] %>' label="<%= fmt["label"] %>" selected="<%= params[:quality] == fmt["label"].split(" - ")[0] %>"> <% else %> - <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= i == 0 ? true : false %>"> + <source src="<%= fmt["url"] %>" type='<%= fmt["type"].split(";")[0] %>' label="<%= fmt["label"] %>" selected="<%= i == 0 ? true : false %>"> <% end %> <% end %> <% end %> |
