diff options
Diffstat (limited to 'server/src/routes/ui')
-rw-r--r-- | server/src/routes/ui/player.rs | 3 |
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"); |