mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-10 03:50:52 +00:00
small fix
This commit is contained in:
parent
8a0bed7238
commit
be3e111e63
1 changed files with 4 additions and 1 deletions
|
|
@ -376,7 +376,10 @@ const ContinueWatchingSection = React.forwardRef<ContinueWatchingRef>((props, re
|
||||||
const [type, id, ...episodeIdParts] = keyParts;
|
const [type, id, ...episodeIdParts] = keyParts;
|
||||||
const episodeId = episodeIdParts.length > 0 ? episodeIdParts.join(':') : undefined;
|
const episodeId = episodeIdParts.length > 0 ? episodeIdParts.join(':') : undefined;
|
||||||
const progress = allProgress[key];
|
const progress = allProgress[key];
|
||||||
const progressPercent = (progress.currentTime / progress.duration) * 100;
|
const progressPercent =
|
||||||
|
progress.duration > 0
|
||||||
|
? (progress.currentTime / progress.duration) * 100
|
||||||
|
: 0;
|
||||||
// Skip fully watched movies
|
// Skip fully watched movies
|
||||||
if (type === 'movie' && progressPercent >= 85) continue;
|
if (type === 'movie' && progressPercent >= 85) continue;
|
||||||
// Skip movies with no actual progress (ensure > 0%)
|
// Skip movies with no actual progress (ensure > 0%)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue