fix: episode transition, progress save, and seek alignment

This commit is contained in:
2026-05-15 02:22:43 +02:00
parent aa8df4fd54
commit 88edf87178
5 changed files with 42 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ const sendBeacon = (payload: string) => {
* Debounced: skips if within 5s of last save for same episode.
*/
export const saveProgress = async (): Promise<void> => {
if (!state.malID || state.video.currentTime < 1) return;
if (state.transitionEpisode !== null || !state.malID || state.video.currentTime < 1) return;
const episode = Number.parseInt(state.currentEpisode, 10);
if (!episode) return;