Update jellyfin_client.py

pull/49/head
Broque Thomas 5 months ago
parent 3d55c690a1
commit 22db9ba04d

@ -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:

Loading…
Cancel
Save