mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-30 20:22:00 +00:00 
			
		
		
		
	Ignore casing for trending type in api
This commit is contained in:
		| @@ -4,11 +4,14 @@ def fetch_trending(trending_type, region, locale) | ||||
|  | ||||
|   plid = nil | ||||
|  | ||||
|   if trending_type == "Music" | ||||
|   trending_type ||= "default" | ||||
|   trending_type = trending_type.downcase | ||||
|  | ||||
|   if trending_type == "music" | ||||
|     params = "4gINGgt5dG1hX2NoYXJ0cw%3D%3D" | ||||
|   elsif trending_type == "Gaming" | ||||
|   elsif trending_type == "gaming" | ||||
|     params = "4gIcGhpnYW1pbmdfY29ycHVzX21vc3RfcG9wdWxhcg%3D%3D" | ||||
|   elsif trending_type == "Movies" | ||||
|   elsif trending_type == "movies" | ||||
|     params = "4gIKGgh0cmFpbGVycw%3D%3D" | ||||
|   else # Default | ||||
|     params = "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ChunkyProgrammer
					ChunkyProgrammer