mirror of
https://github.com/iv-org/invidious
synced 2024-11-16 21:25:31 +00:00
Trending: de-duplicate results
This commit is contained in:
parent
384a8e200c
commit
90914343ec
@ -35,5 +35,6 @@ def fetch_trending(trending_type, region, locale)
|
||||
end
|
||||
end
|
||||
|
||||
return extracted, plid
|
||||
# Deduplicate items before returning results
|
||||
return extracted.select(SearchVideo).uniq!(&.id), plid
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user