mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix(jellyfin): use correct filter for album/artist with small count
This commit is contained in:
@@ -1119,19 +1119,19 @@ export const JellyfinController: InternalControllerEndpoint = {
|
|||||||
? formatCommaDelimitedString(query.albumIds)
|
? formatCommaDelimitedString(query.albumIds)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const parentIdFilter = [albumIdsFilter, artistIdsFilter].filter(Boolean).join(',');
|
|
||||||
|
|
||||||
const res = await jfApiClient(apiClientProps).getSongList({
|
const res = await jfApiClient(apiClientProps).getSongList({
|
||||||
params: {
|
params: {
|
||||||
userId: apiClientProps.server?.userId,
|
userId: apiClientProps.server?.userId,
|
||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
|
AlbumIds: albumIdsFilter,
|
||||||
|
ArtistIds: artistIdsFilter,
|
||||||
Fields: 'Genres, DateCreated, MediaSources, ParentId, People, Tags',
|
Fields: 'Genres, DateCreated, MediaSources, ParentId, People, Tags',
|
||||||
GenreIds: query.genreIds?.join(','),
|
GenreIds: query.genreIds?.join(','),
|
||||||
IncludeItemTypes: 'Audio',
|
IncludeItemTypes: 'Audio',
|
||||||
IsFavorite: query.favorite,
|
IsFavorite: query.favorite,
|
||||||
Limit: query.limit,
|
Limit: query.limit,
|
||||||
ParentId: parentIdFilter,
|
ParentId: getLibraryId(query.musicFolderId),
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
SearchTerm: query.searchTerm,
|
SearchTerm: query.searchTerm,
|
||||||
SortBy: songListSortMap.jellyfin[query.sortBy] || 'Album,SortName',
|
SortBy: songListSortMap.jellyfin[query.sortBy] || 'Album,SortName',
|
||||||
|
|||||||
@@ -174,7 +174,6 @@ const normalizeSong = (
|
|||||||
|
|
||||||
const artists = getArtists(item, participants);
|
const artists = getArtists(item, participants);
|
||||||
|
|
||||||
console.log('artists', artists);
|
|
||||||
return {
|
return {
|
||||||
_itemType: LibraryItem.SONG,
|
_itemType: LibraryItem.SONG,
|
||||||
_serverId: server?.id || '',
|
_serverId: server?.id || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user