Browse Source

Add albumGenre property to albums

master
jeffvli 3 years ago
committed by Jeff
parent
commit
7dd947b8fe
  1. 1
      src/api/jellyfinApi.ts

1
src/api/jellyfinApi.ts

@ -140,6 +140,7 @@ const normalizeAlbum = (item: any) => {
created: item.DateCreated,
year: item.ProductionYear,
genre: item.GenreItems && item.GenreItems.map((entry: any) => normalizeItem(entry)),
albumGenre: item.GenreItems && item.GenreItems[0]?.Name,
image: getCoverArtUrl(item),
isDir: false,
starred: item.UserData && item.UserData.IsFavorite ? 'true' : undefined,

Loading…
Cancel
Save