mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Trending: de-duplicate results
This commit is contained in:
parent
384a8e200c
commit
90914343ec
1 changed files with 2 additions and 1 deletions
|
@ -35,5 +35,6 @@ def fetch_trending(trending_type, region, locale)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return extracted, plid
|
# Deduplicate items before returning results
|
||||||
|
return extracted.select(SearchVideo).uniq!(&.id), plid
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue