[bugfix]: restart synchronized lyrics on repeat one (or track queued multiple times)

This commit is contained in:
Kendall Garner 2024-04-12 20:52:10 -07:00
parent 9f86a8179f
commit 729538d885
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -271,7 +271,12 @@ export const SynchronizedLyrics = ({
return;
}
if (!seeked) {
// If the time goes back to 0 and we are still playing, this suggests that
// we may be playing the same track (repeat one). In this case, we also
// need to restart playback
const restarted = status === PlayerStatus.PLAYING && now === 0;
if (!seeked && !restarted) {
return;
}