add folder browsing support (#315)

This commit is contained in:
jeffvli
2025-12-02 21:30:44 -08:00
parent 355257104d
commit 917bf91583
53 changed files with 2382 additions and 299 deletions
+10
View File
@@ -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);