aboutsummaryrefslogtreecommitdiff
path: root/stream/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-12-22 20:42:37 +0100
committermetamuffin <metamuffin@disroot.org>2023-12-22 20:42:37 +0100
commit753a47a39c8e542ffa06d4c0735f9f67e890d199 (patch)
treecb7faa65e66296740315728af1ca864cf9e6174b /stream/src
parent208a845a28f47fb6aef56ba447cfc7c2e093ac20 (diff)
downloadjellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar
jellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar.bz2
jellything-753a47a39c8e542ffa06d4c0735f9f67e890d199.tar.zst
rework import system pt. 7: cache tmdb, media ignore flags
Diffstat (limited to 'stream/src')
-rw-r--r--stream/src/jhls.rs5
-rw-r--r--stream/src/lib.rs2
2 files changed, 5 insertions, 2 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs
index 600d945..e61e918 100644
--- a/stream/src/jhls.rs
+++ b/stream/src/jhls.rs
@@ -41,7 +41,10 @@ pub async fn jhls_stream(
&node.public,
match &track_sources[i] {
TrackSource::Local(x) => x,
- TrackSource::Remote => return Some(Err(anyhow!("das geht nicht"))),
+ // TODO fetch seek index from the remote and create a single session to be sent in jhls
+ TrackSource::Remote(_) => {
+ return Some(Err(anyhow!("remote tracks dont work yet")))
+ }
},
) {
Ok(segments) => Some(Ok::<_, anyhow::Error>(JhlsTrack {
diff --git a/stream/src/lib.rs b/stream/src/lib.rs
index ee5c78a..e2137d3 100644
--- a/stream/src/lib.rs
+++ b/stream/src/lib.rs
@@ -72,7 +72,7 @@ pub async fn stream(
.ok_or(anyhow!("track does not exist"))?
{
TrackSource::Local(t) => t.to_owned(),
- TrackSource::Remote => bail!("track is not local"),
+ TrackSource::Remote(_) => bail!("track is not local"),
},
)
})