From ef95dc2380294d70f0e303b5e2b5bf9c07840769 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 21 Oct 2018 19:54:41 -0500 Subject: [PATCH] Add fix for show playlists --- src/invidious/views/components/item.ecr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 6560ab4c7..9fe2fb70f 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 %>