mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
ok that alot
This commit is contained in:
1 parent
df1a783fde
commit
5f33ee231d
17 files changed
+64
-47
No files matched your search
@@ -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(() => {});
|
||||
|
||||
Reference in new issue
Block a user