ok that alot

This commit is contained in:
NoLogicAlan committed 2026-05-11 22:24:08 +03:00
1 parent df1a783fde
commit 5f33ee231d
17 files changed
+64 -47

No files matched your search

+1 -1
View File
@@ -921,7 +921,7 @@ export class PlayerManager {
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);
const playedMs = Date.now() - (player.startedPlaying ?? startedAtMs ?? Date.now());
if (lastfm.shouldScrobble(song, playedMs)) {
for (const userId of humanUserIds) {
lastfm.scrobble(userId, song, startedAtMs).catch(() => {});