small fix

This commit is contained in:
chrisk325 2026-01-04 05:44:56 +05:30 committed by GitHub
parent 8a0bed7238
commit be3e111e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -376,7 +376,10 @@ const ContinueWatchingSection = React.forwardRef<ContinueWatchingRef>((props, re
const [type, id, ...episodeIdParts] = keyParts;
const episodeId = episodeIdParts.length > 0 ? episodeIdParts.join(':') : undefined;
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
if (type === 'movie' && progressPercent >= 85) continue;
// Skip movies with no actual progress (ensure > 0%)