mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Merge pull request #3622 from ChunkyProgrammer/downcase-trending-type-param
This commit is contained in:
commit
d6bf9e9bcf
1 changed files with 4 additions and 3 deletions
|
@ -4,11 +4,12 @@ def fetch_trending(trending_type, region, locale)
|
|||
|
||||
plid = nil
|
||||
|
||||
if trending_type == "Music"
|
||||
case trending_type.try &.downcase
|
||||
when "music"
|
||||
params = "4gINGgt5dG1hX2NoYXJ0cw%3D%3D"
|
||||
elsif trending_type == "Gaming"
|
||||
when "gaming"
|
||||
params = "4gIcGhpnYW1pbmdfY29ycHVzX21vc3RfcG9wdWxhcg%3D%3D"
|
||||
elsif trending_type == "Movies"
|
||||
when "movies"
|
||||
params = "4gIKGgh0cmFpbGVycw%3D%3D"
|
||||
else # Default
|
||||
params = ""
|
||||
|
|
Loading…
Reference in a new issue