Add 'view as playlist' option to trending page

This commit is contained in:
Omar Roth 2019-04-14 19:04:10 -05:00
parent 9c8f85741c
commit f5dd135ed8
14 changed files with 55 additions and 7 deletions

View file

@ -1955,7 +1955,7 @@ get "/feed/trending" do |env|
region ||= "US"
begin
trending = fetch_trending(trending_type, proxies, region, locale)
trending, plid = fetch_trending(trending_type, proxies, region, locale)
rescue ex
error_message = "#{ex.message}"
next templated "error"
@ -3205,7 +3205,7 @@ get "/api/v1/trending" do |env|
trending_type = env.params.query["type"]?
begin
trending = fetch_trending(trending_type, proxies, region, locale)
trending, plid = fetch_trending(trending_type, proxies, region, locale)
rescue ex
error_message = {"error" => ex.message}.to_json
env.response.status_code = 500