fix missing album genre after refactor

This commit is contained in:
Thomas Amland 2020-08-16 11:52:42 +02:00
parent b1acf3d711
commit bed9761fc1

View File

@ -10,6 +10,7 @@ export interface Album {
artistId: string artistId: string
year: number year: number
starred: boolean starred: boolean
genre?: string
image?: string image?: string
tracks?: Track[] tracks?: Track[]
} }
@ -277,6 +278,7 @@ export class API {
image: this.getCoverArtUrl(item), image: this.getCoverArtUrl(item),
year: item.year || 0, year: item.year || 0,
starred: !!item.starred, starred: !!item.starred,
genre: item.genre,
tracks: (item.song || []).map(this.normalizeTrack, this) tracks: (item.song || []).map(this.normalizeTrack, this)
} }
} }