mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Merge pull request #680 from leonklingele/add-player-styles
Add support for player styles
This commit is contained in:
commit
f6f176afc1
7 changed files with 40 additions and 1 deletions
|
@ -1497,6 +1497,9 @@ post "/preferences" do |env|
|
|||
speed = env.params.body["speed"]?.try &.as(String).to_f32?
|
||||
speed ||= CONFIG.default_user_preferences.speed
|
||||
|
||||
player_style = env.params.body["player_style"]?.try &.as(String)
|
||||
player_style ||= CONFIG.default_user_preferences.player_style
|
||||
|
||||
quality = env.params.body["quality"]?.try &.as(String)
|
||||
quality ||= CONFIG.default_user_preferences.quality
|
||||
|
||||
|
@ -1565,6 +1568,7 @@ post "/preferences" do |env|
|
|||
locale: locale,
|
||||
max_results: max_results,
|
||||
notifications_only: notifications_only,
|
||||
player_style: player_style,
|
||||
quality: quality,
|
||||
redirect_feed: redirect_feed,
|
||||
related_videos: related_videos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue