Skip to content

Commit

Permalink
fix: fine-tune default orderings
Browse files Browse the repository at this point in the history
fixes #229
  • Loading branch information
leinelissen committed Jul 21, 2024
1 parent 9952b39 commit 38ce998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utility/JellyfinApi/album.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function retrieveRecentAlbums(numberOfAlbums = 24) {
export async function retrieveAlbumTracks(ItemId: string) {
const singleAlbumOptions = {
ParentId: ItemId,
SortBy: 'SortName',
SortBy: 'IndexNumber,SortName',
};
const singleAlbumParams = new URLSearchParams(singleAlbumOptions).toString();

Expand Down
2 changes: 1 addition & 1 deletion src/utility/JellyfinApi/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function retrieveAllPlaylists() {
export async function retrievePlaylistTracks(ItemId: string) {
const credentials = asyncFetchStore().getState().settings.jellyfin;
const singlePlaylistOptions = {
SortBy: 'SortName',
SortBy: 'IndexNumber,SortName',
UserId: credentials?.user_id || '',
};
const singlePlaylistParams = new URLSearchParams(singlePlaylistOptions).toString();
Expand Down
2 changes: 1 addition & 1 deletion src/utility/JellyfinApi/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fetchApi } from './lib';

const searchParams = {
IncludeItemTypes: 'Audio,MusicAlbum',
SortBy: 'Album,SortName',
SortBy: 'SearchScore,Album,SortName',
SortOrder: 'Ascending',
Recursive: 'true',
};
Expand Down

0 comments on commit 38ce998

Please sign in to comment.