From 753a47a39c8e542ffa06d4c0735f9f67e890d199 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 22 Dec 2023 20:42:37 +0100 Subject: rework import system pt. 7: cache tmdb, media ignore flags --- stream/src/jhls.rs | 5 ++++- stream/src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'stream/src') 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"), }, ) }) -- cgit v1.2.3-70-g09d2