mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
Allow user preferences to effect extend_desc
This commit is contained in:
parent
8bbb016fa4
commit
445ff856fe
@ -60,6 +60,10 @@ class Invidious::Routes::PreferencesRoute < Invidious::Routes::BaseRoute
|
|||||||
volume = env.params.body["volume"]?.try &.as(String).to_i?
|
volume = env.params.body["volume"]?.try &.as(String).to_i?
|
||||||
volume ||= CONFIG.default_user_preferences.volume
|
volume ||= CONFIG.default_user_preferences.volume
|
||||||
|
|
||||||
|
extend_desc = env.params.body["extend_desc"]?.try &.as(String)
|
||||||
|
extend_desc ||= "off"
|
||||||
|
extend_desc = extend_desc == "on"
|
||||||
|
|
||||||
vr_mode = env.params.body["vr_mode"]?.try &.as(String)
|
vr_mode = env.params.body["vr_mode"]?.try &.as(String)
|
||||||
vr_mode ||= "off"
|
vr_mode ||= "off"
|
||||||
vr_mode = vr_mode == "on"
|
vr_mode = vr_mode == "on"
|
||||||
@ -144,6 +148,7 @@ class Invidious::Routes::PreferencesRoute < Invidious::Routes::BaseRoute
|
|||||||
unseen_only: unseen_only,
|
unseen_only: unseen_only,
|
||||||
video_loop: video_loop,
|
video_loop: video_loop,
|
||||||
volume: volume,
|
volume: volume,
|
||||||
|
extend_desc: extend_desc,
|
||||||
vr_mode: vr_mode,
|
vr_mode: vr_mode,
|
||||||
}.to_json).to_json
|
}.to_json).to_json
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user