From c1603b7e5b2943f04c682f3dd6597cb2157912f1 Mon Sep 17 00:00:00 2001 From: MizterB <5458030+MizterB@users.noreply.github.com> Date: Thu, 5 Feb 2026 04:32:59 -0500 Subject: [PATCH] Apple Music: Limit get_library_tracks to 150 songs per batch (#3094) Reduce max_limit to 150 --- music_assistant/providers/apple_music/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_assistant/providers/apple_music/__init__.py b/music_assistant/providers/apple_music/__init__.py index e38a640e..c3de1646 100644 --- a/music_assistant/providers/apple_music/__init__.py +++ b/music_assistant/providers/apple_music/__init__.py @@ -415,8 +415,8 @@ class AppleMusicProvider(MusicProvider): library_only_tracks.append(item) else: song_catalog_ids.append(catalog_id) - # Obtain catalog info per 200 songs, the documented limit of 300 results in a 504 timeout - max_limit = 200 + # Obtain catalog info per 150 songs, the documented limit of 300 results in a 504 timeout + max_limit = 150 for i in range(0, len(song_catalog_ids), max_limit): catalog_ids = song_catalog_ids[i : i + max_limit] catalog_endpoint = f"catalog/{self._storefront}/songs" -- 2.34.1