Add menu for selecting trending page

This commit is contained in:
Omar Roth
2018-12-20 16:48:45 -06:00
parent 1360d67c11
commit 0feb414a1d
3 changed files with 30 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ def fetch_trending(trending_type, proxies, region, locale)
region = region.upcase
trending = ""
if trending_type
if trending_type && trending_type != "Default"
trending_type = trending_type.downcase.capitalize
response = client.get("/feed/trending?gl=#{region}&hl=en", headers).body