From fe4b947d26b66bbc93906efff39414c092d0528d Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 14 May 2026 01:34:26 +0000 Subject: [PATCH] fix(koito): Use same now playing threshold as listenrbainz --- src/backend/scrobblers/KoitoScrobbler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/scrobblers/KoitoScrobbler.ts b/src/backend/scrobblers/KoitoScrobbler.ts index 1e889154..34926efe 100644 --- a/src/backend/scrobblers/KoitoScrobbler.ts +++ b/src/backend/scrobblers/KoitoScrobbler.ts @@ -7,7 +7,7 @@ import { FormatPlayObjectOptions, TimeRangeListensFetcher } from "../common/infr import { playToListenPayload } from '../common/vendor/listenbrainz/lzUtils.js'; import { Notifiers } from "../notifier/Notifiers.js"; -import AbstractScrobbleClient from "./AbstractScrobbleClient.js"; +import AbstractScrobbleClient, { nowPlayingUpdateByPlayDuration } from "./AbstractScrobbleClient.js"; import { isDebugMode } from "../utils.js"; import { KoitoClientConfig } from "../common/infrastructure/config/client/koito.js"; import { KoitoApiClient, listenObjectResponseToPlay } from "../common/vendor/koito/KoitoApiClient.js"; @@ -28,6 +28,7 @@ export default class KoitoScrobbler extends AbstractScrobbleClient { // 1000 is way too high. maxing at 100 this.MAX_INITIAL_SCROBBLES_FETCH = 100; this.supportsNowPlaying = true; + this.nowPlayingMaxThreshold = nowPlayingUpdateByPlayDuration; this.getScrobblesForTimeRange = createGetScrobblesForTimeRangeFunc(this.api, this.api.logger); } -- 2.51.2