diff options
| author | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2024-04-23 23:31:47 -0400 |
|---|---|---|
| committer | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2024-04-23 23:51:22 -0400 |
| commit | 24de19d06f35cd21a92c7f18869c376ddc170acc (patch) | |
| tree | f182abc94ba21cdf81b147d1d68366ec2fd680a4 | |
| parent | b673695aa2704b880562399ac78659ad23b7940d (diff) | |
| download | invidious-24de19d06f35cd21a92c7f18869c376ddc170acc.tar.gz invidious-24de19d06f35cd21a92c7f18869c376ddc170acc.tar.bz2 invidious-24de19d06f35cd21a92c7f18869c376ddc170acc.zip | |
only ignore smaller trending categories on default trending tab
| -rw-r--r-- | src/invidious/trending.cr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/trending.cr b/src/invidious/trending.cr index 2d9f8a83..107d148d 100644 --- a/src/invidious/trending.cr +++ b/src/invidious/trending.cr @@ -22,12 +22,14 @@ def fetch_trending(trending_type, region, locale) extracted = [] of SearchItem + deduplicate = items.size > 1 + items.each do |itm| if itm.is_a?(Category) # Ignore the smaller categories, as they generally contain a sponsored # channel, which brings a lot of noise on the trending page. # See: https://github.com/iv-org/invidious/issues/2989 - next if itm.contents.size < 24 + next if (itm.contents.size < 24 && deduplicate) extracted.concat extract_category(itm) else |
