Remove duplicate information from autogenerated channel page

This commit is contained in:
Omar Roth 2019-02-25 09:52:44 -06:00
parent 09d0972ab4
commit b5a00f3c47

View File

@ -2266,6 +2266,7 @@ get "/channel/:ucid" do |env|
items, continuation = fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by) items, continuation = fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
items.select! { |item| item.is_a?(SearchPlaylist) && !item.videos.empty? } items.select! { |item| item.is_a?(SearchPlaylist) && !item.videos.empty? }
items = items.map { |item| item.as(SearchPlaylist) } items = items.map { |item| item.as(SearchPlaylist) }
items.each { |item| item.author = "" }
else else
items, count = get_60_videos(ucid, page, auto_generated, sort_by) items, count = get_60_videos(ucid, page, auto_generated, sort_by)
items.select! { |item| !item.paid } items.select! { |item| !item.paid }