From 79a40cc389b3197ffa40361d28ebdc4767c4bc3c Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 3 Mar 2026 21:53:09 +1300 Subject: [PATCH] Improvements to progress restore --- materialious/src/lib/components/player/Player.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }