|
|
@ -1363,6 +1363,10 @@ post "/preferences" do |env|
|
|
|
|
dark_mode ||= "off"
|
|
|
|
dark_mode ||= "off"
|
|
|
|
dark_mode = dark_mode == "on"
|
|
|
|
dark_mode = dark_mode == "on"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thin_mode = env.params.body["thin_mode"]?.try &.as(String)
|
|
|
|
|
|
|
|
thin_mode ||= "off"
|
|
|
|
|
|
|
|
thin_mode = thin_mode == "on"
|
|
|
|
|
|
|
|
|
|
|
|
max_results = env.params.body["max_results"]?.try &.as(String).to_i
|
|
|
|
max_results = env.params.body["max_results"]?.try &.as(String).to_i
|
|
|
|
max_results ||= 40
|
|
|
|
max_results ||= 40
|
|
|
|
|
|
|
|
|
|
|
@ -1380,6 +1384,7 @@ post "/preferences" do |env|
|
|
|
|
"quality" => quality,
|
|
|
|
"quality" => quality,
|
|
|
|
"volume" => volume,
|
|
|
|
"volume" => volume,
|
|
|
|
"dark_mode" => dark_mode,
|
|
|
|
"dark_mode" => dark_mode,
|
|
|
|
|
|
|
|
"thin_mode" => thin_mode,
|
|
|
|
"max_results" => max_results,
|
|
|
|
"max_results" => max_results,
|
|
|
|
"sort" => sort,
|
|
|
|
"sort" => sort,
|
|
|
|
"latest_only" => latest_only,
|
|
|
|
"latest_only" => latest_only,
|
|
|
|