From e804ce33ef8acb3b33ce2edfcd53c97a8662c77f Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Wed, 15 Jul 2026 20:49:37 +0000 Subject: [PATCH] fix(listenbrainz): Fix play fetch more indicator latest_listen_ts is *always* the latest of *all-time*, not for the current min/max_ts range requested. Instead, use count < than desired (and non-zero) to indicate more results --- src/backend/common/vendor/ListenbrainzApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/common/vendor/ListenbrainzApiClient.ts b/src/backend/common/vendor/ListenbrainzApiClient.ts index 202d786f..fe908f9a 100644 --- a/src/backend/common/vendor/ListenbrainzApiClient.ts +++ b/src/backend/common/vendor/ListenbrainzApiClient.ts @@ -289,7 +289,7 @@ export class ListenbrainzApiClient extends AbstractApiClient implements Pageless try { const lr = await this.getUserListens({...lzListensOptions, user}); - const more = to > lr.latest_listen_ts; + const more = lr.count > 0 && lr.count === lzListensOptions.count; return {data: lr.listens.map(x => listenResponseToPlay(x)), meta: {...options, total: lr.count, more}}; } catch (e) { throw e; -- 2.51.2