feishin/src/renderer/features/player
Kendall Garner eff1cee6a3
[bugfix]: Fix repeated track scrobbling (#480)
* [bugfix]: Fix repeated track scrobbling

This commit fixes scrobbling tracks that are repeated in the queue (either due
to a REPEAT_ONE or just enqueued multiple times). There are two extra cases:

1. The current player changes. The player alternates from 1 -> 2 -> 1 whenever playback
finishes normally, so this is a sort of epoch that can be used to detect both repeat one
and track being enqueued multiple times.
2. The current index changes. The player gets set back to 1 in a variety of cases (most often
previous/next), so the check in (1) is not enough. However, the index changing will help identify
that this is a new song.

* use unique id instead
2024-02-01 04:12:39 +00:00
..
components [bugfix]: use proper language key for lyrics size 2024-01-27 10:07:10 -08:00
context Lint all files 2023-07-01 19:14:12 -07:00
hooks [bugfix]: Fix repeated track scrobbling (#480) 2024-02-01 04:12:39 +00:00
mutations Lint all files 2023-07-01 19:14:12 -07:00
ref Improved lyric syncing, fetch 2023-06-04 16:46:05 -07:00
index.ts Allow initialIndex on queue add (#67) 2023-05-20 18:40:45 -07:00
utils.ts Support genres in context menu 2023-08-04 02:27:04 -07:00