Improvements to progress restore

This commit is contained in:
WardPearce
2026-03-03 21:53:09 +13:00
parent 487daeec44
commit 79a40cc389
@@ -739,7 +739,7 @@
if (isOwnBackend()?.internalAuth && get(rawMasterKeyStore)) {
const watchHistory = await getVideoWatchHistory(data.video.videoId);
if (watchHistory) toSetTime = watchHistory.progress;
if (watchHistory && watchHistory.progress > toSetTime) toSetTime = watchHistory.progress;
}
return toSetTime;
@@ -762,7 +762,7 @@
}
}
if (isOwnBackend()?.internalAuth && get(rawMasterKeyStore)) {
if (isOwnBackend()?.internalAuth && get(rawMasterKeyStore) && playerElement.currentTime > 10) {
updateWatchHistory(data.video.videoId, playerElement.currentTime);
}
}