From d0344b071a6423f3302c4bbd84de3e7270ccb9b1 Mon Sep 17 00:00:00 2001 From: lostb1t Date: Thu, 11 Jul 2024 18:41:26 +0200 Subject: [PATCH] fix: dont mark unfinished shows as watched --- README.md | 4 +++- src/models.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58d8545..45033e9 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Note: SSL is highly suggested, some clients default to not allowing insecure con ## Reverse proxy -If you have a reverse proxy running and dont want to proxy streaming through plex then you can route the following paths and it subpaths directly to plex. +There should be no need for this but if you have a reverse proxy running and dont want to proxy streaming through plex then you can route the following paths and it subpaths directly to plex. - /video/:/transcode/universal/session - /library/parts @@ -138,6 +138,8 @@ If you have a reverse proxy running and dont want to proxy streaming through ple If you have for example an appbox it might not be ideal to stream media through replex. As that will take a lot of network resources. You can redirect streams by enabling `REPLEX_REDIRECT_STREAMS` and optionally set `REPLEX_REDIRECT_STREAMS_HOST` if it needs to be different from REPLEX_HOST +Note: Plex doesnt handle redirects wel, and will not remeber it. So every chuck of a stream will first hit replex and then gets redirected to actuall download that chuck from the redirect url. So a bit wastefull + ## Known limitations - hero rows on Android devices dont load more content. so hero rows have a maximum of 100 items on Android. diff --git a/src/models.rs b/src/models.rs index 8720f86..3aa8395 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1325,7 +1325,7 @@ impl MetaData { format!("collection:{}", collection_id), ) .await?; - // dbg!(collection_details.media_container.library_section_id); + Ok(collection_details .media_container .children() @@ -1340,7 +1340,7 @@ impl MetaData { return true; } if self.viewed_leaf_count.is_some() - && self.viewed_leaf_count.unwrap_or_default() > 0 + && self.leaf_count.unwrap_or_default() == self.viewed_leaf_count.unwrap() { return true; }