mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Ad debug info for now playing issue
This commit is contained in:
@@ -638,8 +638,14 @@ export class SubsonicMusicLibrary implements MusicLibrary {
|
|||||||
id,
|
id,
|
||||||
submission: true,
|
submission: true,
|
||||||
})
|
})
|
||||||
.then((_) => true)
|
.then((_) => {
|
||||||
.catch(() => false)
|
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) =>
|
nowPlaying = async (id: string) =>
|
||||||
this.subsonic
|
this.subsonic
|
||||||
@@ -647,8 +653,14 @@ export class SubsonicMusicLibrary implements MusicLibrary {
|
|||||||
id,
|
id,
|
||||||
submission: false,
|
submission: false,
|
||||||
})
|
})
|
||||||
.then((_) => true)
|
.then((_) => {
|
||||||
.catch(() => false)
|
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) =>
|
searchArtists = async (query: string) =>
|
||||||
this.subsonic
|
this.subsonic
|
||||||
|
|||||||
Reference in New Issue
Block a user