diff --git a/src/components/player/hooks/useSkipTracking.ts b/src/components/player/hooks/useSkipTracking.ts index 28706323..4d7d7c1b 100644 --- a/src/components/player/hooks/useSkipTracking.ts +++ b/src/components/player/hooks/useSkipTracking.ts @@ -160,6 +160,16 @@ export function useSkipTracking( return; } + // Only report skips where end time is greater than start time + if (currentTime <= skipSessionStartRef.current) { + // Reset session state without creating event + isInSkipSessionRef.current = false; + skipSessionStartRef.current = 0; + sessionTotalRef.current = 0; + skipWindowRef.current = []; + return; + } + // Create skip event for completed session const skipEvent: SkipEvent = { startTime: skipSessionStartRef.current, diff --git a/src/components/player/internals/Backend/SkipTracker.tsx b/src/components/player/internals/Backend/SkipTracker.tsx index 893e6dd9..cd4333f0 100644 --- a/src/components/player/internals/Backend/SkipTracker.tsx +++ b/src/components/player/internals/Backend/SkipTracker.tsx @@ -44,8 +44,8 @@ export function SkipTracker() { skip_duration: skip.skipDuration, content_id: meta?.tmdbId, content_type: meta?.type, - season_id: meta?.season?.tmdbId, - episode_id: meta?.episode?.tmdbId, + season: meta?.season?.number, + episode: meta?.episode?.number, confidence: adjustedConfidence, turnstile_token: turnstileToken ?? "", }),