mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Add separate filter for album song list fetch
This commit is contained in:
parent
f2e6a418b0
commit
b8b8ca9f66
@ -251,7 +251,7 @@ const getSongList = async (args: SongListArgs): Promise<NDSongList> => {
|
||||
const { query, server, signal } = args;
|
||||
|
||||
const searchParams: NDSongListParams = {
|
||||
_end: query.startIndex + (query.limit || 0),
|
||||
_end: query.startIndex + (query.limit || -1),
|
||||
_order: sortOrderMap.navidrome[query.sortOrder],
|
||||
_sort: songListSortMap.navidrome[query.sortBy],
|
||||
_start: query.startIndex,
|
||||
|
@ -215,6 +215,7 @@ export type NDAlbumListParams = {
|
||||
export enum NDSongListSort {
|
||||
ALBUM = 'album, order_album_artist_name, disc_number, track_number, title',
|
||||
ALBUM_ARTIST = 'albumArtist',
|
||||
ALBUM_SONGS = 'discNumber, trackNumber',
|
||||
ARTIST = 'artist',
|
||||
BPM = 'bpm',
|
||||
CHANNELS = 'channels',
|
||||
|
@ -481,7 +481,7 @@ export const songListSortMap: SongListSortMap = {
|
||||
year: undefined,
|
||||
},
|
||||
navidrome: {
|
||||
album: NDSongListSort.ALBUM,
|
||||
album: NDSongListSort.ALBUM_SONGS,
|
||||
albumArtist: NDSongListSort.ALBUM_ARTIST,
|
||||
artist: NDSongListSort.ARTIST,
|
||||
bpm: NDSongListSort.BPM,
|
||||
|
Loading…
Reference in New Issue
Block a user