fix missing album genre after refactor
This commit is contained in:
parent
b1acf3d711
commit
bed9761fc1
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user