mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-05 07:02:11 +00:00
Add menu for selecting trending page
This commit is contained in:
@@ -1743,7 +1743,10 @@ get "/feed/trending" do |env|
|
||||
locale = LOCALES[env.get("locale").as(String)]?
|
||||
|
||||
trending_type = env.params.query["type"]?
|
||||
trending_type ||= "Default"
|
||||
|
||||
region = env.params.query["region"]?
|
||||
region ||= "US"
|
||||
|
||||
begin
|
||||
trending = fetch_trending(trending_type, proxies, region, locale)
|
||||
|
||||
Reference in New Issue
Block a user