Remove duplicate information from autogenerated channel page
This commit is contained in:
parent
09d0972ab4
commit
b5a00f3c47
|
@ -2266,6 +2266,7 @@ get "/channel/:ucid" do |env|
|
|||
items, continuation = fetch_channel_playlists(ucid, author, auto_generated, continuation, sort_by)
|
||||
items.select! { |item| item.is_a?(SearchPlaylist) && !item.videos.empty? }
|
||||
items = items.map { |item| item.as(SearchPlaylist) }
|
||||
items.each { |item| item.author = "" }
|
||||
else
|
||||
items, count = get_60_videos(ucid, page, auto_generated, sort_by)
|
||||
items.select! { |item| !item.paid }
|
||||
|
|
Loading…
Reference in a new issue