From b0b14bcd18f3812d8eee70c15ca6bbe8d161046d Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Thu, 25 Jun 2026 11:13:57 +0200 Subject: [PATCH] fix: hide episode spoilers until marked watched close #1397 --- lib/media/media_item_types.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/media/media_item_types.dart b/lib/media/media_item_types.dart index 0196b4cf..56052875 100644 --- a/lib/media/media_item_types.dart +++ b/lib/media/media_item_types.dart @@ -15,14 +15,11 @@ extension MediaItemTypes on MediaItem { kind == MediaKind.movie || kind == MediaKind.show || kind == MediaKind.season || kind == MediaKind.episode; /// Whether this episode should have spoiler protection applied. - /// True when the item is an unwatched episode watched less than 50%. + /// True for any episode that has not yet been marked watched, regardless of + /// in-progress playback position (#1397). bool get shouldHideSpoiler { if (!isEpisode) return false; - if (isWatched) return false; - if (viewOffsetMs != null && viewOffsetMs! > 0 && durationMs != null && durationMs! > 0) { - return viewOffsetMs! / durationMs! < 0.5; - } - return true; + return !isWatched; } /// Non-spoiler art path for episodes (show/season background).