mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 09:07:48 +01:00
Add fix for playlists with no videos
This commit is contained in:
parent
d8b7c0750a
commit
d886f8d1e3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
<a style="width:100%;" href="/playlist?list=<%= item.id %>">
|
<a style="width:100%;" href="/playlist?list=<%= item.id %>">
|
||||||
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
|
||||||
<% else %>
|
<% 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 %>
|
<% end %>
|
||||||
<p><%= item.title %></p>
|
<p><%= item.title %></p>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue