This commit is contained in:
jeffvli
2026-01-18 16:16:41 -08:00
parent 03b01472f8
commit f6cec17710
5 changed files with 547 additions and 68 deletions
+20 -1
View File
@@ -271,7 +271,26 @@ export const queryKeys: Record<
root: (serverId: string) => [serverId, 'genres'] as const,
},
musicbrainz: {
artist: (mbzArtistId: string) => ['musicbrainz', 'artist', mbzArtistId] as const,
artist: (
limit: number | undefined,
mbzArtistId: string,
config?: {
excludeReleaseTypes: string[];
prioritizeCountries: string[];
},
) =>
[
'musicbrainz',
'artist',
mbzArtistId,
limit,
config
? [
[...config.excludeReleaseTypes].sort().join(','),
[...config.prioritizeCountries].sort().join(','),
]
: null,
] as const,
root: () => ['musicbrainz'] as const,
},
musicFolders: {