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() {
|
||||
if (this.kind === 'card' || this.item.type === "playlists") {
|
||||
try {
|
||||
if (typeof this.item.attributes.description.standard != "undefined") {
|
||||
return this.item.attributes.description.standard
|
||||
} else if (typeof this.item.attributes.artistNames != "undefined") {
|
||||
if (this.kind == "card") {
|
||||
if (typeof this.item.attributes.artistNames != "undefined") {
|
||||
return this.item.attributes.artistNames
|
||||
} else if (typeof this.item.attributes.editorialNotes != "undefined") {
|
||||
return this.item?.attributes?.editorialNotes?.short ?? (this.item.attributes?.editorialNotes?.name ?? '')
|
||||
|
@ -140,12 +137,13 @@
|
|||
} else {
|
||||
return ''
|
||||
}
|
||||
} catch (e) {
|
||||
return ''
|
||||
}
|
||||
} else {
|
||||
if (typeof this.item.attributes.artistName != "undefined") {
|
||||
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 {
|
||||
return ''
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue