Skip to content

Commit 8f032f2

Browse files
committed
feat(listenbrainz): Allow now playing reporting for koito
Doesn't affect scrobbling and means if/when NP is actually supported it'll work automatically
1 parent ff11e26 commit 8f032f2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/backend/scrobblers/ListenbrainzScrobbler.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ export default class ListenbrainzScrobbler extends AbstractScrobbleClient {
9797
}
9898

9999
doPlayingNow = async (data: PlayObject) => {
100-
if(!this.isKoito) {
101-
try {
102-
await this.api.submitListen(data, { listenType: 'playing_now'});
103-
} catch (e) {
104-
throw new UpstreamError(`Error occurred while making Listenbrainz API Playing Now request: ${e.message}`, {cause: e, showStopper: !(e instanceof UpstreamError)});
105-
}
100+
try {
101+
await this.api.submitListen(data, { listenType: 'playing_now'});
102+
} catch (e) {
103+
throw new UpstreamError(`Error occurred while making Listenbrainz API Playing Now request: ${e.message}`, {cause: e, showStopper: !(e instanceof UpstreamError)});
106104
}
107105
}
108106
}

0 commit comments

Comments
 (0)