mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-17 03:34:29 -05:00
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, 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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user