mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Remove duplicate information from autogenerated channel page
This commit is contained in:
parent
09d0972ab4
commit
b5a00f3c47
1 changed files with 1 additions and 0 deletions
|
@ -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