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, created: item.DateCreated,
year: item.ProductionYear, year: item.ProductionYear,
genre: item.GenreItems && item.GenreItems.map((entry: any) => normalizeItem(entry)), genre: item.GenreItems && item.GenreItems.map((entry: any) => normalizeItem(entry)),
albumGenre: item.GenreItems && item.GenreItems[0]?.Name,
image: getCoverArtUrl(item), image: getCoverArtUrl(item),
isDir: false, isDir: false,
starred: item.UserData && item.UserData.IsFavorite ? 'true' : undefined, starred: item.UserData && item.UserData.IsFavorite ? 'true' : undefined,

Loading…
Cancel
Save