fix subtitles
This commit is contained in:
parent
048c7623ad
commit
e52c67f603
1 changed files with 18 additions and 20 deletions
|
@ -127,11 +127,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSubtitle() {
|
getSubtitle() {
|
||||||
if (this.kind === 'card' || this.item.type === "playlists") {
|
if (this.kind == "card") {
|
||||||
try {
|
if (typeof this.item.attributes.artistNames != "undefined") {
|
||||||
if (typeof this.item.attributes.description.standard != "undefined") {
|
|
||||||
return this.item.attributes.description.standard
|
|
||||||
} else if (typeof this.item.attributes.artistNames != "undefined") {
|
|
||||||
return this.item.attributes.artistNames
|
return this.item.attributes.artistNames
|
||||||
} else if (typeof this.item.attributes.editorialNotes != "undefined") {
|
} else if (typeof this.item.attributes.editorialNotes != "undefined") {
|
||||||
return this.item?.attributes?.editorialNotes?.short ?? (this.item.attributes?.editorialNotes?.name ?? '')
|
return this.item?.attributes?.editorialNotes?.short ?? (this.item.attributes?.editorialNotes?.name ?? '')
|
||||||
|
@ -140,12 +137,13 @@
|
||||||
} else {
|
} else {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
} catch (e) {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (typeof this.item.attributes.artistName != "undefined") {
|
if (typeof this.item.attributes.artistName != "undefined") {
|
||||||
return this.item.attributes.artistName
|
return this.item.attributes.artistName
|
||||||
|
} else if (typeof this.item.attributes.artist != "undefined") {
|
||||||
|
return this.item.attributes.artist.attributes.name
|
||||||
|
} else if (typeof this.item.attributes.curatorName != "undefined") {
|
||||||
|
return this.item.attributes.curatorName
|
||||||
} else {
|
} else {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue