fix(jellyfin): return "Appears On" section to artist page (#812)

Exclude 'AlbumArtistIds' when querying "Appears On" items, which,
if put together with 'ContributingArtistIds', returns an empty list.
This commit is contained in:
sel10ut 2024-10-31 21:33:10 +03:00 committed by GitHub
parent 993841ddbf
commit 61d7e7c390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -293,10 +293,14 @@ export const JellyfinController: ControllerEndpoint = {
userId: apiClientProps.server?.userId,
},
query: {
AlbumArtistIds: query.artistIds
? formatCommaDelimitedString(query.artistIds)
: undefined,
ContributingArtistIds: query.compilation ? query.artistIds?.[0] : undefined,
...(!query.compilation &&
query.artistIds && {
AlbumArtistIds: formatCommaDelimitedString(query.artistIds),
}),
...(query.compilation &&
query.artistIds && {
ContributingArtistIds: query.artistIds[0],
}),
GenreIds: query.genres ? query.genres.join(',') : undefined,
IncludeItemTypes: 'MusicAlbum',
IsFavorite: query.favorite,