Add fix for show playlists

This commit is contained in:
Omar Roth 2018-10-21 19:54:41 -05:00
parent 4875aa1d7e
commit ef95dc2380
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<% else %>
<div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.videos[0]?.try &.id %>/mqdefault.jpg"/>
<p class="length"><%= recode_length_seconds(item.videos[0].length_seconds) %></p>
<p class="length"><%= recode_length_seconds(item.videos[0]?.try &.length_seconds || 0) %></p>
</div>
<% end %>
<p><%= item.title %></p>