From c2596cb01f52eef8b5f281ae9134afc7dc93f4ed Mon Sep 17 00:00:00 2001 From: Wolfgang Kulhanek Date: Thu, 16 Oct 2025 13:21:20 +0200 Subject: [PATCH] Ad debug info for now playing issue --- src/subsonic.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/subsonic.ts b/src/subsonic.ts index aaaae6d..04c34af 100644 --- a/src/subsonic.ts +++ b/src/subsonic.ts @@ -638,8 +638,14 @@ export class SubsonicMusicLibrary implements MusicLibrary { id, submission: true, }) - .then((_) => true) - .catch(() => false) + .then((_) => { + logger.debug(`Successfully scrobbled track ${id}`); + return true; + }) + .catch((e) => { + logger.error(`Failed to scrobble track ${id}`, { error: e }); + return false; + }) nowPlaying = async (id: string) => this.subsonic @@ -647,8 +653,14 @@ export class SubsonicMusicLibrary implements MusicLibrary { id, submission: false, }) - .then((_) => true) - .catch(() => false) + .then((_) => { + logger.debug(`Successfully reported now playing for track ${id}`); + return true; + }) + .catch((e) => { + logger.error(`Failed to report now playing for track ${id}`, { error: e }); + return false; + }) searchArtists = async (query: string) => this.subsonic