This commit is contained in:
NoLogicAlan committed 2026-05-12 20:40:27 +03:00
1 parent 13ce356502
commit 82de97f95a
1 file changed
+1 -1
+1 -1
View File
@@ -977,7 +977,7 @@ export class PlayerManager {
// Only scrobble if the same song is still playing
const current = player.queue?.getCurrent();
if (!current || player._destroyed || player.leaving) return;
if (current.title !== song.title && current.url !== song.url) return;
if (current.title !== song.title || current.url !== song.url) return;
if (player._paused) return; // don't scrobble if paused
const playedMs = Date.now() - (player.startedPlaying ?? startedAtMs ?? Date.now());