mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-16 21:18:26 +00:00
Add 'local' option to preferences
This commit is contained in:
@@ -1231,6 +1231,10 @@ post "/preferences" do |env|
|
||||
listen ||= "off"
|
||||
listen = listen == "on"
|
||||
|
||||
local = env.params.body["local"]?.try &.as(String)
|
||||
local ||= "off"
|
||||
local = local == "on"
|
||||
|
||||
speed = env.params.body["speed"]?.try &.as(String).to_f?
|
||||
speed ||= DEFAULT_USER_PREFERENCES.speed
|
||||
|
||||
@@ -1292,6 +1296,7 @@ post "/preferences" do |env|
|
||||
"autoplay" => autoplay,
|
||||
"continue" => continue,
|
||||
"listen" => listen,
|
||||
"local" => local,
|
||||
"speed" => speed,
|
||||
"quality" => quality,
|
||||
"volume" => volume,
|
||||
|
||||
Reference in New Issue
Block a user