Invidious is an alternative front-end to YouTube
Fix 500 for livestream
Omar Rotha27c55690455
diff --git a/src/views/watch.ecr b/src/views/watch.ecrindex 1f4a883f..f727c4a9 100644--- a/src/views/watch.ecr+++ b/src/views/watch.ecr@@ -8,17 +8,17 @@<% if listen == "true" %><audio id="player" class="video-js" data-setup="{}" style="width:100%;" controls><% 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") %>- <source src="<%= url %>" type="<%= type %>">+ <source src="<%= url %>" type="<%= type %>"><% end %><% end %></audio><% else %><video id="player" class="video-js" data-setup="{}" style="width:100%;" controls><% fmt_stream.each do |fmt| %>- <source src="<%= fmt["url"] %>" type="<%= fmt["type"].split(";")[0] %>">+ <source src="<%= fmt["url"]? %>" type="<%= fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %>"><% end %></video><% end %>