aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-15 13:54:52 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-15 13:54:52 +0200
commitc59abb792391e2f7540a80bb8d989021fe0a5b80 (patch)
tree33688772e3822b38441f86a08c0c595ea1ef14b0 /common/src
parent3b147cb1dfcbd5c7218e0accd5784d992d5ae21c (diff)
downloadjellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar
jellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar.bz2
jellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar.zst
refactor jsp, part 1
Diffstat (limited to 'common/src')
-rw-r--r--common/src/stream.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/src/stream.rs b/common/src/stream.rs
index 9fd7daf..ba91ff5 100644
--- a/common/src/stream.rs
+++ b/common/src/stream.rs
@@ -191,6 +191,11 @@ impl StreamSpec {
index: get_num("index")? as IndexNum,
container: get_container()?,
})
+ } else if query.contains_key("fragmentindex") {
+ Ok(Self::FragmentIndex {
+ segment: get_num("segment")? as SegmentNum,
+ track: get_num("track")? as TrackNum,
+ })
} else {
Err("invalid stream spec")
}