diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-25 09:52:44 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-25 09:52:44 -0600 |
| commit | b5a00f3c47f76871722bf5ae957b2b890789ca72 (patch) | |
| tree | 28a1a0cc6cba4576169bdc3eaa54e07b444db5c9 /src | |
| parent | 09d0972ab45227be66e3e3a29934c3378dc6dc1f (diff) | |
| download | invidious-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.cr | 1 |
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 } |
