Browse Source

Change from /genres -> /musicgenres

master
jeffvli 3 years ago
committed by Jeff
parent
commit
42034a548f
  1. 2
      src/api/jellyfinApi.ts

2
src/api/jellyfinApi.ts

@ -453,7 +453,7 @@ export const batchUnstar = async (options: { ids: string[] }) => {
}; };
export const getGenres = async (options: { musicFolderId?: string }) => { export const getGenres = async (options: { musicFolderId?: string }) => {
const { data } = await jellyfinApi.get(`/genres`, { const { data } = await jellyfinApi.get(`/musicgenres`, {
params: { parentId: options.musicFolderId }, params: { parentId: options.musicFolderId },
}); });
return (data.Items || []).map((entry: any) => normalizeGenre(entry)); return (data.Items || []).map((entry: any) => normalizeGenre(entry));

Loading…
Cancel
Save