only ignore smaller trending categories on default trending tab
This commit is contained in:
parent
b673695aa2
commit
24de19d06f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue