Support ProblematicTimelineItem in trending feed

This commit is contained in:
syeopite
2025-03-19 23:50:41 -07:00
parent f7810ba007
commit 7b27585454
2 changed files with 6 additions and 3 deletions

View File

@@ -31,12 +31,12 @@ def fetch_trending(trending_type, region, locale)
# See: https://github.com/iv-org/invidious/issues/2989
next if (itm.contents.size < 24 && deduplicate)
extracted.concat extract_category(itm)
extracted.concat itm.contents.select(SearchItem)
else
extracted << itm
end
end
# Deduplicate items before returning results
return extracted.select(SearchVideo).uniq!(&.id), plid
return extracted.select(SearchVideo | ProblematicTimelineItem).uniq!(&.id), plid
end