This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
feishin/src/renderer/features/player/hooks
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
..
use-center-controls.ts [bugfix]: web player edge cases 2024-01-28 01:50:51 -08:00
use-handle-playqueue-add.ts Add localization support (#333) 2023-10-30 19:22:45 -07:00
use-playqueue-add.ts Lint all files 2023-07-01 19:14:12 -07:00
use-right-controls.ts Support changing playback rate (#275) 2023-10-22 17:47:44 -07:00
use-scrobble.ts [bugfix]: Fix repeated track scrobbling (#480) 2024-02-01 04:12:39 +00:00