From fedcb4d2b6d0a2a22995f6074758549e9cacf307 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 7 Jul 2025 22:00:48 -0600 Subject: [PATCH] fix is watched precentage --- src/components/overlays/details/EpisodeCarousel.tsx | 6 +++--- src/components/player/atoms/Episodes.tsx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/overlays/details/EpisodeCarousel.tsx b/src/components/overlays/details/EpisodeCarousel.tsx index e3fefd4e..b3a350b4 100644 --- a/src/components/overlays/details/EpisodeCarousel.tsx +++ b/src/components/overlays/details/EpisodeCarousel.tsx @@ -169,8 +169,8 @@ export function EpisodeCarousel({ 100 : 0; - // If watched (>80%), reset to 0%, otherwise set to 100% - const isWatched = percentage > 80; + // If watched (>90%), reset to 0%, otherwise set to 100% + const isWatched = percentage > 90; // Get the poster URL from the mediaPosterUrl prop const posterUrl = mediaPosterUrl; @@ -372,7 +372,7 @@ export function EpisodeCarousel({ : 0; const isAired = hasAired(episode.air_date); const isExpanded = expandedEpisodes[episode.id]; - const isWatched = percentage > 98; + const isWatched = percentage > 90; return ( 80%), reset to 0%, otherwise set to 100% - const isWatched = percentage > 80; + // If watched (>90%), reset to 0%, otherwise set to 100% + const isWatched = percentage > 90; updateItem({ meta: { @@ -350,7 +350,7 @@ export function EpisodesView({ const isAired = hasAired(ep.air_date); const isActive = ep.id === meta?.episode?.tmdbId; - const isWatched = percentage > 98; + const isWatched = percentage > 90; return (