mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add speed and fix <select> options
This commit is contained in:
parent
96c520b02b
commit
58b5e97fc4
4 changed files with 20 additions and 4 deletions
|
@ -700,6 +700,9 @@ post "/preferences" do |env|
|
|||
autoplay ||= "off"
|
||||
autoplay = autoplay == "on"
|
||||
|
||||
speed = env.params.body["speed"]?.try &.as(String).to_f
|
||||
speed ||= 1.0
|
||||
|
||||
quality = env.params.body["quality"]?.try &.as(String)
|
||||
quality ||= "hd720"
|
||||
|
||||
|
@ -713,6 +716,7 @@ post "/preferences" do |env|
|
|||
preferences = {
|
||||
"video_loop" => video_loop,
|
||||
"autoplay" => autoplay,
|
||||
"speed" => speed,
|
||||
"quality" => quality,
|
||||
"volume" => volume,
|
||||
"dark_mode" => dark_mode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue