diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watched/WatchedRepository.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watched/WatchedRepository.kt index f19133f2..d65129a5 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watched/WatchedRepository.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watched/WatchedRepository.kt @@ -838,6 +838,11 @@ object WatchedRepository { return itemsForSource(activeSource).containsKey(watchedItemKey(type, id, season, episode)) } + fun isFullyWatchedSeries(id: String, type: String): Boolean { + val key = watchedItemKey(type, id) + return _fullyWatchedSeriesKeys.value.contains(key) + } + fun reconcileSeriesWatchedState( meta: MetaDetails, todayIsoDate: String, diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching/application/WatchingActions.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching/application/WatchingActions.kt index 6977e02c..d3d46372 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching/application/WatchingActions.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching/application/WatchingActions.kt @@ -31,7 +31,7 @@ object WatchingActions { val isCurrentlyWatched = WatchedRepository.isWatched( id = preview.id, type = preview.type, - ) + ) || WatchedRepository.isFullyWatchedSeries(id = preview.id, type = preview.type) val meta = MetaDetailsRepository.fetch(type = preview.type, id = preview.id) if (meta == null) { if (isCurrentlyWatched) {