mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
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:
parent
993841ddbf
commit
61d7e7c390
@ -293,10 +293,14 @@ export const JellyfinController: ControllerEndpoint = {
|
|||||||
userId: apiClientProps.server?.userId,
|
userId: apiClientProps.server?.userId,
|
||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
AlbumArtistIds: query.artistIds
|
...(!query.compilation &&
|
||||||
? formatCommaDelimitedString(query.artistIds)
|
query.artistIds && {
|
||||||
: undefined,
|
AlbumArtistIds: formatCommaDelimitedString(query.artistIds),
|
||||||
ContributingArtistIds: query.compilation ? query.artistIds?.[0] : undefined,
|
}),
|
||||||
|
...(query.compilation &&
|
||||||
|
query.artistIds && {
|
||||||
|
ContributingArtistIds: query.artistIds[0],
|
||||||
|
}),
|
||||||
GenreIds: query.genres ? query.genres.join(',') : undefined,
|
GenreIds: query.genres ? query.genres.join(',') : undefined,
|
||||||
IncludeItemTypes: 'MusicAlbum',
|
IncludeItemTypes: 'MusicAlbum',
|
||||||
IsFavorite: query.favorite,
|
IsFavorite: query.favorite,
|
||||||
|
Loading…
Reference in New Issue
Block a user