aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/player.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-29 15:03:18 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-29 15:03:18 +0100
commitc0ba30314a06de10c9b98ac130676dcbc9f287fa (patch)
treee35631ed3181f89ae962e9125cc5073f12967924 /server/src/routes/ui/player.rs
parent4ad7aa6042c64a6e7cfbe2693a4bbeda0514357b (diff)
downloadjellything-c0ba30314a06de10c9b98ac130676dcbc9f287fa.tar
jellything-c0ba30314a06de10c9b98ac130676dcbc9f287fa.tar.bz2
jellything-c0ba30314a06de10c9b98ac130676dcbc9f287fa.tar.zst
rename stream spec param
Diffstat (limited to 'server/src/routes/ui/player.rs')
-rw-r--r--server/src/routes/ui/player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs
index 7e67709..233547e 100644
--- a/server/src/routes/ui/player.rs
+++ b/server/src/routes/ui/player.rs
@@ -52,7 +52,7 @@ pub fn r_player<'a>(
let item = T_NODE.get(db, id)?.ok_or(anyhow!("node does not exist"))?;
let spec = StreamSpec {
- tracks: None
+ track: None
.into_iter()
.chain(conf.v.into_iter())
.chain(conf.a.into_iter())
@@ -63,7 +63,7 @@ pub fn r_player<'a>(
..Default::default()
};
- let playing = !spec.tracks.is_empty();
+ let playing = !spec.track.is_empty();
let conf = player_conf(item.clone(), playing)?;
Ok(LayoutPage {