Only set progress if not at last 10 seconds

This commit is contained in:
WardPearce
2026-03-05 11:06:52 +13:00
parent 8dc21d5121
commit 021c437aae
@@ -728,7 +728,9 @@
let toSetTime = 0;
const watchHistory = await getVideoWatchHistory(data.video.videoId);
if (watchHistory && watchHistory.progress > toSetTime) toSetTime = watchHistory.progress;
if (watchHistory && watchHistory.progress < playerMaxKnownTime - 10) {
toSetTime = watchHistory.progress;
}
return toSetTime;
}