Add fix for playlists with no videos

このコミットが含まれているのは:
Omar Roth 2018-09-22 14:11:01 -05:00
コミット d886f8d1e3
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -17,7 +17,7 @@
<a style="width:100%;" href="/playlist?list=<%= item.id %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %>
<img style="width:100%;" src="/vi/<%= item.videos[0].id %>/mqdefault.jpg"/>
<img style="width:100%;" src="/vi/<%= item.videos[0]?.try &.id %>/mqdefault.jpg"/>
<% end %>
<p><%= item.title %></p>
</a>