mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-28 18:08:44 +00:00
fix is watched precentage
This commit is contained in:
parent
805cccf1b6
commit
fedcb4d2b6
2 changed files with 9 additions and 9 deletions
|
|
@ -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 (
|
||||
<Link
|
||||
|
|
|
|||
|
|
@ -213,8 +213,8 @@ export function EpisodesView({
|
|||
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;
|
||||
|
||||
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 (
|
||||
<div key={ep.id} ref={isActive ? activeEpisodeRef : null}>
|
||||
|
|
@ -385,7 +385,7 @@ export function EpisodesView({
|
|||
{episodeProgress && (
|
||||
<ProgressRing
|
||||
className="h-[18px] w-[18px] text-white"
|
||||
percentage={percentage > 98 ? 100 : percentage}
|
||||
percentage={percentage}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -526,7 +526,7 @@ export function EpisodesView({
|
|||
<div
|
||||
className="h-full bg-progress-filled"
|
||||
style={{
|
||||
width: `${percentage > 98 ? 100 : percentage}%`,
|
||||
width: `${percentage}%`,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -679,7 +679,7 @@ export function EpisodesView({
|
|||
<div
|
||||
className="h-full bg-progress-filled"
|
||||
style={{
|
||||
width: `${percentage > 98 ? 100 : percentage}%`,
|
||||
width: `${percentage}%`,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue