fix is watched precentage

This commit is contained in:
Pas 2025-07-07 22:00:48 -06:00
parent 805cccf1b6
commit fedcb4d2b6
2 changed files with 9 additions and 9 deletions

View file

@ -169,8 +169,8 @@ export function EpisodeCarousel({
100 100
: 0; : 0;
// If watched (>80%), reset to 0%, otherwise set to 100% // If watched (>90%), reset to 0%, otherwise set to 100%
const isWatched = percentage > 80; const isWatched = percentage > 90;
// Get the poster URL from the mediaPosterUrl prop // Get the poster URL from the mediaPosterUrl prop
const posterUrl = mediaPosterUrl; const posterUrl = mediaPosterUrl;
@ -372,7 +372,7 @@ export function EpisodeCarousel({
: 0; : 0;
const isAired = hasAired(episode.air_date); const isAired = hasAired(episode.air_date);
const isExpanded = expandedEpisodes[episode.id]; const isExpanded = expandedEpisodes[episode.id];
const isWatched = percentage > 98; const isWatched = percentage > 90;
return ( return (
<Link <Link

View file

@ -213,8 +213,8 @@ export function EpisodesView({
100 100
: 0; : 0;
// If watched (>80%), reset to 0%, otherwise set to 100% // If watched (>90%), reset to 0%, otherwise set to 100%
const isWatched = percentage > 80; const isWatched = percentage > 90;
updateItem({ updateItem({
meta: { meta: {
@ -350,7 +350,7 @@ export function EpisodesView({
const isAired = hasAired(ep.air_date); const isAired = hasAired(ep.air_date);
const isActive = ep.id === meta?.episode?.tmdbId; const isActive = ep.id === meta?.episode?.tmdbId;
const isWatched = percentage > 98; const isWatched = percentage > 90;
return ( return (
<div key={ep.id} ref={isActive ? activeEpisodeRef : null}> <div key={ep.id} ref={isActive ? activeEpisodeRef : null}>
@ -385,7 +385,7 @@ export function EpisodesView({
{episodeProgress && ( {episodeProgress && (
<ProgressRing <ProgressRing
className="h-[18px] w-[18px] text-white" className="h-[18px] w-[18px] text-white"
percentage={percentage > 98 ? 100 : percentage} percentage={percentage}
/> />
)} )}
</div> </div>
@ -526,7 +526,7 @@ export function EpisodesView({
<div <div
className="h-full bg-progress-filled" className="h-full bg-progress-filled"
style={{ style={{
width: `${percentage > 98 ? 100 : percentage}%`, width: `${percentage}%`,
}} }}
/> />
</div> </div>
@ -679,7 +679,7 @@ export function EpisodesView({
<div <div
className="h-full bg-progress-filled" className="h-full bg-progress-filled"
style={{ style={{
width: `${percentage > 98 ? 100 : percentage}%`, width: `${percentage}%`,
}} }}
/> />
</div> </div>