[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

add more logging for discord now playing update logic

FoxxMD (Mar 10, 2026, 4:43 PM UTC) 013cccaa 504f8ffb

+10 -2
+10 -2
src/backend/scrobblers/DiscordScrobbler.ts
··· 163 163 164 164 const [sendOk, reasons, level = 'warn'] = await this.api.checkOkToSend(); 165 165 if (!sendOk) { 166 - this.logger[level](`Cannot update playing now because api client is ${reasons}`); 166 + this.npLogger[level](`Cannot update playing now because api client is ${reasons}`); 167 167 return false; 168 168 } 169 169 170 170 if(this.api instanceof DiscordWSClient) { 171 171 const [allowed, reason] = this.api.presenceIsAllowed(); 172 172 if(!allowed) { 173 - this.logger.debug(reason); 173 + this.npLogger.debug(reason); 174 174 } 175 175 176 176 return true; 177 177 } 178 178 179 179 return true; 180 + } else { 181 + if(!data.nowPlayingMode && ![CALCULATED_PLAYER_STATUSES.stopped, CALCULATED_PLAYER_STATUSES.paused, CALCULATED_PLAYER_STATUSES.playing].includes(data.status.calculated as ReportedPlayerStatus)) { 182 + this.npLogger.trace(`Will not update because player is not in state: stopped | paused | playing => Found '${data.status.calculated }'`); 183 + } else if(data.nowPlayingMode && CALCULATED_PLAYER_STATUSES.stopped) { 184 + this.npLogger.trace(`Will not update because now playing player is stopped => Found ${data.status.calculated}`); 185 + } else { 186 + this.npLogger.trace('Will not update because now player is in an unexpected state for discord usage'); 187 + } 180 188 } 181 189 } 182 190 }