aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/player.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-03-19 21:30:39 +0100
committermetamuffin <metamuffin@disroot.org>2024-03-19 21:30:39 +0100
commita5b49a157d6b4cb52c8421fec4d65835b310f767 (patch)
tree4e0ab07743e73f5efbf9a65d64b027811c48aaeb /server/src/routes/ui/player.rs
parentd495f0f93c2d3b5c4c575f39b7d4b93731122b0f (diff)
parenteec3cc456bd1424ad0eb4ed8d4e22954913f14a7 (diff)
downloadjellything-a5b49a157d6b4cb52c8421fec4d65835b310f767.tar
jellything-a5b49a157d6b4cb52c8421fec4d65835b310f767.tar.bz2
jellything-a5b49a157d6b4cb52c8421fec4d65835b310f767.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/jellything
Diffstat (limited to 'server/src/routes/ui/player.rs')
-rw-r--r--server/src/routes/ui/player.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs
index 1ef0149..80386ad 100644
--- a/server/src/routes/ui/player.rs
+++ b/server/src/routes/ui/player.rs
@@ -39,6 +39,7 @@ pub struct PlayerConfig {
pub v: Option<TrackID>,
pub s: Option<TrackID>,
pub t: Option<f64>,
+ pub kind: Option<PlayerKind>,
}
impl PlayerConfig {
@@ -93,7 +94,7 @@ pub fn r_player<'a>(
))))
};
- match sess.user.player_preference {
+ match conf.kind.unwrap_or(sess.user.player_preference) {
PlayerKind::Browser => (),
PlayerKind::Native => {
return native_session("player");