mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
fix repeat one/repeat all scrobble
This commit is contained in:
parent
1555b827ee
commit
0115ecb59b
1 changed files with 5 additions and 1 deletions
|
|
@ -342,8 +342,12 @@ export const useScrobble = () => {
|
||||||
// a single track on repeat one, or one track added to the queue
|
// 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)
|
// multiple times in a row and playback goes normally (no next/previous)
|
||||||
equalityFn: (a, b) =>
|
equalityFn: (a, b) =>
|
||||||
|
// compute whether the song changed
|
||||||
(a[0] as QueueSong)?.uniqueId === (b[0] as QueueSong)?.uniqueId &&
|
(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],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue