diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 6560ab4c..9fe2fb70 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -24,7 +24,7 @@ <% else %>
-

<%= recode_length_seconds(item.videos[0].length_seconds) %>

+

<%= recode_length_seconds(item.videos[0]?.try &.length_seconds || 0) %>

<% end %>

<%= item.title %>