mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 14:22:46 +02:00
add folder browsing support (#315)
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
AlbumDetailQuery,
|
||||
AlbumListQuery,
|
||||
ArtistListQuery,
|
||||
FolderQuery,
|
||||
GenreListQuery,
|
||||
LyricSearchQuery,
|
||||
LyricsQuery,
|
||||
@@ -224,6 +225,15 @@ export const queryKeys: Record<
|
||||
},
|
||||
root: (serverId: string) => [serverId, 'artists'] as const,
|
||||
},
|
||||
folders: {
|
||||
folder: (serverId: string, query?: FolderQuery) => {
|
||||
if (query) {
|
||||
return [serverId, 'folders', 'folder', query] as const;
|
||||
}
|
||||
|
||||
return [serverId, 'folders', 'folder'] as const;
|
||||
},
|
||||
},
|
||||
genres: {
|
||||
count: (serverId: string, query?: GenreListQuery) => {
|
||||
const { filter, pagination } = splitPaginatedQuery(query);
|
||||
|
||||
Reference in New Issue
Block a user