From ecd48ca23440c155fe9a8c2f9879e26523f49cbc Mon Sep 17 00:00:00 2001 From: Exerra Date: Sun, 9 Aug 2026 23:49:42 +0300 Subject: [PATCH] fix(AppleMusicSource): include library-songs in recent tracks Updated the Apple Music recently played tracks query to include 'library-songs' types in addition to 'songs', ensuring a more comprehensive history retrieval. --- src/backend/sources/AppleMusicSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/sources/AppleMusicSource.ts b/src/backend/sources/AppleMusicSource.ts index a595423e..736da991 100644 --- a/src/backend/sources/AppleMusicSource.ts +++ b/src/backend/sources/AppleMusicSource.ts @@ -159,7 +159,7 @@ export default class AppleMusicSource extends AbstractSource { private getTracks = async (limit: number): Promise => { const clampedLimit = Math.max(1, Math.min(this.UPSTREAM_TRACK_LIMIT, Math.round(limit))); - const result = await this.musicKit.me.history.getRecentlyPlayedTracks({ limit: clampedLimit as MeHistoryRecentlyPlayedTracksProps["limit"], types: ["songs"] }); + const result = await this.musicKit.me.history.getRecentlyPlayedTracks({ limit: clampedLimit as MeHistoryRecentlyPlayedTracksProps["limit"], types: ["songs", "library-songs"] }); if (result.error) { throw new Error(result.error); } -- 2.51.2