Don't add playlist id for channel videos

This commit is contained in:
Omar Roth 2018-08-27 18:53:34 -05:00
parent 2ba0063dc0
commit 45fa148380
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
<div class="pure-u-1 pure-u-md-1-4">
<div class="h-box">
<% if video.responds_to?(:playlists) %>
<% if video.responds_to?(:playlists) && !video.playlists.empty? %>
<% params = "&list=#{video.playlists[0]}" %>
<% else %>
<% params = nil %>