Skip to content

Commit

Permalink
Don't add playlist id for channel videos
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Aug 27, 2018
1 parent 2ba0063 commit 45fa148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/invidious.cr
Expand Up @@ -1597,6 +1597,7 @@ get "/channel/:ucid" do |env|

begin
videos = extract_playlist(ucid, page)
videos.each { |a| a.playlists.clear }
rescue ex
error_message = ex.message
next templated "error"
Expand Down
2 changes: 1 addition & 1 deletion src/invidious/views/components/video.ecr
@@ -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 %>
Expand Down

0 comments on commit 45fa148

Please sign in to comment.