diff --git a/materialious/src/lib/components/player/Player.svelte b/materialious/src/lib/components/player/Player.svelte index 9430051f..e1a316f2 100644 --- a/materialious/src/lib/components/player/Player.svelte +++ b/materialious/src/lib/components/player/Player.svelte @@ -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); } }