Skip to content

Commit a030107

Browse files
committed
✨ mark content as watched when less than 3 minutes remain
1 parent 032db2b commit a030107

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

js/modal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ function handleVideoTimeUpdate() {
251251
markEpisodeWatched(title, season, epIndex, false, current);
252252
}
253253

254-
if (current / duration >= 0.9) {
254+
const remaining = duration - current;
255+
if (remaining <= 180) {
255256
if (type === "film") {
256257
markFilmWatched(title, true, 0);
257258
} else if (type === "series") {

0 commit comments

Comments
 (0)