diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-15 13:54:52 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-15 13:54:52 +0200 |
commit | c59abb792391e2f7540a80bb8d989021fe0a5b80 (patch) | |
tree | 33688772e3822b38441f86a08c0c595ea1ef14b0 /common/src/stream.rs | |
parent | 3b147cb1dfcbd5c7218e0accd5784d992d5ae21c (diff) | |
download | jellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar jellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar.bz2 jellything-c59abb792391e2f7540a80bb8d989021fe0a5b80.tar.zst |
refactor jsp, part 1
Diffstat (limited to 'common/src/stream.rs')
-rw-r--r-- | common/src/stream.rs | 5 |
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") } |