From 22db9ba04de8869f2ab3bf26431c8dbf5fea955f Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Thu, 25 Sep 2025 14:17:57 -0700 Subject: [PATCH] Update jellyfin_client.py --- core/jellyfin_client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/jellyfin_client.py b/core/jellyfin_client.py index 5e83be2..f371ec4 100644 --- a/core/jellyfin_client.py +++ b/core/jellyfin_client.py @@ -489,15 +489,16 @@ class JellyfinClient: self._populate_aggressive_cache() try: + # Use proper AlbumArtists endpoint to match Jellyfin's "Album Artists" tab + # This should return 3,966 artists including Weird Al params = { 'ParentId': self.music_library_id, - 'IncludeItemTypes': 'MusicArtist', 'Recursive': True, 'SortBy': 'SortName', 'SortOrder': 'Ascending' } - - response = self._make_request(f'/Users/{self.user_id}/Items', params) + + response = self._make_request('/Artists/AlbumArtists', params) if not response: return [] @@ -508,7 +509,7 @@ class JellyfinClient: self._artist_cache[artist.ratingKey] = artist artists.append(artist) - logger.info(f"Retrieved {len(artists)} artists from Jellyfin (with aggressive caching)") + logger.info(f"Retrieved {len(artists)} album artists from Jellyfin AlbumArtists endpoint (with aggressive caching)") return artists except Exception as e: