[jellyfin]: prefer sort name over name

This commit is contained in:
Kendall Garner 2024-04-19 23:11:26 -07:00
parent ebd2f07447
commit 595eba152a
No known key found for this signature in database
GPG key ID: 18D2767419676C87
3 changed files with 7 additions and 7 deletions

View file

@ -231,7 +231,7 @@ const getAlbumArtistList = async (args: AlbumArtistListArgs): Promise<AlbumArtis
ParentId: query.musicFolderId,
Recursive: true,
SearchTerm: query.searchTerm,
SortBy: albumArtistListSortMap.jellyfin[query.sortBy] || 'Name,SortName',
SortBy: albumArtistListSortMap.jellyfin[query.sortBy] || 'SortName,Name',
SortOrder: sortOrderMap.jellyfin[query.sortOrder],
StartIndex: query.startIndex,
UserId: apiClientProps.server?.userId || undefined,
@ -257,7 +257,7 @@ const getArtistList = async (args: ArtistListArgs): Promise<AlbumArtistListRespo
Limit: query.limit,
ParentId: query.musicFolderId,
Recursive: true,
SortBy: artistListSortMap.jellyfin[query.sortBy] || 'Name,SortName',
SortBy: artistListSortMap.jellyfin[query.sortBy] || 'SortName,Name',
SortOrder: sortOrderMap.jellyfin[query.sortOrder],
StartIndex: query.startIndex,
},