diff --git a/src/views/watch.ecr b/src/views/watch.ecr index 1f4a883f..f727c4a9 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -8,17 +8,17 @@ <% if listen == "true" %> <% adaptive_fmts.each do |fmt| %> - <% url = fmt["url"] %> - <% type = fmt["type"].to_s.split(";")[0] %> + <% url = fmt["url"]? %> + <% type = fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %> <% if type.starts_with?("audio") %> - + <% end %> <% end %> <% else %> <% fmt_stream.each do |fmt| %> - " type="<%= fmt["type"].split(";")[0] %>"> + " type="<%= fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %>"> <% end %> <% end %>