format
This commit is contained in:
parent
c3e15b236e
commit
e6796ba4ad
2 changed files with 4 additions and 6 deletions
|
@ -289,8 +289,7 @@
|
||||||
if (this.data.type.includes('albums')) {
|
if (this.data.type.includes('albums')) {
|
||||||
let date = this.data.attributes.releaseDate;
|
let date = this.data.attributes.releaseDate;
|
||||||
if (date == null || date === "") return "";
|
if (date == null || date === "") return "";
|
||||||
const releaseDate = new Date(date);
|
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${new Date(date).getFullYear()}`
|
||||||
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${releaseDate.getFullYear()}`
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async isInLibrary() {
|
async isInLibrary() {
|
||||||
|
|
|
@ -313,8 +313,7 @@
|
||||||
if (this.data.type.includes('albums')) {
|
if (this.data.type.includes('albums')) {
|
||||||
let date = this.data.attributes.releaseDate;
|
let date = this.data.attributes.releaseDate;
|
||||||
if (date == null || date === "") return "";
|
if (date == null || date === "") return "";
|
||||||
const releaseDate = new Date(date);
|
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${new Date(date).getFullYear()}`
|
||||||
return `${this.data.relationships.tracks.data[0].attributes.genreNames[0]} · ${releaseDate.getFullYear()}`
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async isInLibrary() {
|
async isInLibrary() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue