From 0115ecb59ba2efb8898f86599838a9d78118edad Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Sun, 20 Apr 2025 10:54:44 -0700 Subject: [PATCH] fix repeat one/repeat all scrobble --- src/renderer/features/player/hooks/use-scrobble.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/player/hooks/use-scrobble.ts b/src/renderer/features/player/hooks/use-scrobble.ts index a93dad13..fc9a833b 100644 --- a/src/renderer/features/player/hooks/use-scrobble.ts +++ b/src/renderer/features/player/hooks/use-scrobble.ts @@ -342,8 +342,12 @@ export const useScrobble = () => { // a single track on repeat one, or one track added to the queue // multiple times in a row and playback goes normally (no next/previous) equalityFn: (a, b) => + // compute whether the song changed (a[0] as QueueSong)?.uniqueId === (b[0] as QueueSong)?.uniqueId && - a[2] === b[2], + // compute whether the position changed. This should imply 1 + a[2] === b[2] && + // compute whether the same player: relevant for repeat one and repeat all (one track) + a[3] === b[3], }, );