diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-16 22:58:23 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-16 22:58:23 +0100 |
commit | 1c37d32a0985ff7390313833345b9299f9f0b196 (patch) | |
tree | cd46bcbe7df154bf506c083cf0325d44b3f4e0fb /server/src/routes/ui/player.rs | |
parent | 98b379afb31e455b529d443dcfc5797b8dd6723e (diff) | |
download | jellything-1c37d32a0985ff7390313833345b9299f9f0b196.tar jellything-1c37d32a0985ff7390313833345b9299f9f0b196.tar.bz2 jellything-1c37d32a0985ff7390313833345b9299f9f0b196.tar.zst |
chapter thumbnail display and player seek via url
Diffstat (limited to 'server/src/routes/ui/player.rs')
-rw-r--r-- | server/src/routes/ui/player.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs index 8b8adf6..e3c5cb2 100644 --- a/server/src/routes/ui/player.rs +++ b/server/src/routes/ui/player.rs @@ -29,6 +29,16 @@ pub struct PlayerConfig { pub a: Option<TrackID>, pub v: Option<TrackID>, pub s: Option<TrackID>, + pub t: Option<f64>, +} + +impl PlayerConfig { + pub fn seek(t: f64) -> Self { + Self { + t: Some(t), + ..Default::default() + } + } } #[get("/n/<id>/player?<conf..>", rank = 4)] |