fix album genre names

before: gets genre from 1st track
now: gets genre from album data
This commit is contained in:
SoNothing 2022-07-08 00:01:36 +08:00
parent cb8b15a668
commit 492674da73
No known key found for this signature in database
GPG key ID: 89EFF63E1DBC0176
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@
if (this.data.type.includes('albums')) {
let date = this.data.attributes.releaseDate;
if (date == null || date === "") return "";
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${new Date(date).getFullYear()}`
return `${this.data.attributes.genreNames[0]} · ${new Date(date).getFullYear()}`
}
},
async isInLibrary() {