summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-02-25 09:52:44 -0600
committerOmar Roth <omarroth@hotmail.com>2019-02-25 09:52:44 -0600
commitb5a00f3c47f76871722bf5ae957b2b890789ca72 (patch)
tree28a1a0cc6cba4576169bdc3eaa54e07b444db5c9 /src
parent09d0972ab45227be66e3e3a29934c3378dc6dc1f (diff)
downloadinvidious-b5a00f3c47f76871722bf5ae957b2b890789ca72.tar.gz
invidious-b5a00f3c47f76871722bf5ae957b2b890789ca72.tar.bz2
invidious-b5a00f3c47f76871722bf5ae957b2b890789ca72.zip
Remove duplicate information from autogenerated channel page
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index dda725ff..ce48f041 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -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 }