Merge pull request #3622 from ChunkyProgrammer/downcase-trending-type-param

This commit is contained in:
Émilien Devos (perso) 2023-02-17 18:58:53 +01:00 committed by GitHub
commit d6bf9e9bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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 = ""