mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 15:02:14 +05:30
Use snake case for all variables
This commit is contained in:
parent
5f590dda80
commit
9d91ac3b88
@ -42,8 +42,8 @@ module Invidious::Routes::API::V1::Misc
|
|||||||
format = env.params.query["format"]?
|
format = env.params.query["format"]?
|
||||||
format ||= "json"
|
format ||= "json"
|
||||||
|
|
||||||
listenParam = env.params.query["listen"]?
|
listen_param = env.params.query["listen"]?
|
||||||
listen = (listenParam == "true" || listenParam == "1")
|
listen = (listen_param == "true" || listen_param == "1")
|
||||||
|
|
||||||
if plid.starts_with? "RD"
|
if plid.starts_with? "RD"
|
||||||
return env.redirect "/api/v1/mixes/#{plid}"
|
return env.redirect "/api/v1/mixes/#{plid}"
|
||||||
@ -114,8 +114,8 @@ module Invidious::Routes::API::V1::Misc
|
|||||||
format = env.params.query["format"]?
|
format = env.params.query["format"]?
|
||||||
format ||= "json"
|
format ||= "json"
|
||||||
|
|
||||||
listenParam = env.params.query["listen"]?
|
listen_param = env.params.query["listen"]?
|
||||||
listen = (listenParam == "true" || listenParam == "1")
|
listen = (listen_param == "true" || listen_param == "1")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
mix = fetch_mix(rdid, continuation, locale: locale)
|
mix = fetch_mix(rdid, continuation, locale: locale)
|
||||||
|
Loading…
Reference in New Issue
Block a user