add more artist hero covers
This commit is contained in:
parent
75bc3cd4f9
commit
77c9193321
2 changed files with 4 additions and 2 deletions
|
@ -1702,7 +1702,7 @@ const app = new Vue({
|
||||||
this.page = ""
|
this.page = ""
|
||||||
const artistData = await this.mkapi("artists", false, id, {
|
const artistData = await this.mkapi("artists", false, id, {
|
||||||
"views": "featured-release,full-albums,appears-on-albums,featured-albums,featured-on-albums,singles,compilation-albums,live-albums,latest-release,top-music-videos,similar-artists,top-songs,playlists,more-to-hear,more-to-see",
|
"views": "featured-release,full-albums,appears-on-albums,featured-albums,featured-on-albums,singles,compilation-albums,live-albums,latest-release,top-music-videos,similar-artists,top-songs,playlists,more-to-hear,more-to-see",
|
||||||
"extend": "artistBio,bornOrFormed,editorialArtwork,editorialVideo,isGroup,origin,hero",
|
"extend": "centeredFullscreenBackground,artistBio,bornOrFormed,editorialArtwork,editorialVideo,isGroup,origin,hero",
|
||||||
"extend[playlists]": "trackCount",
|
"extend[playlists]": "trackCount",
|
||||||
"include[songs]": "albums",
|
"include[songs]": "albums",
|
||||||
"fields[albums]": "artistName,artistUrl,artwork,contentRating,editorialArtwork,editorialVideo,name,playParams,releaseDate,url,trackCount",
|
"fields[albums]": "artistName,artistUrl,artwork,contentRating,editorialArtwork,editorialVideo,name,playParams,releaseDate,url,trackCount",
|
||||||
|
|
|
@ -174,7 +174,9 @@
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
hasHero() {
|
hasHero() {
|
||||||
if(this.data.attributes?.editorialArtwork?.bannerUber) {
|
if(this.data.attributes?.editorialArtwork?.centeredFullscreenBackground){
|
||||||
|
return this.data.attributes?.editorialArtwork?.centeredFullscreenBackground.url
|
||||||
|
} else if(this.data.attributes?.editorialArtwork?.bannerUber) {
|
||||||
return this.data.attributes?.editorialArtwork?.bannerUber.url
|
return this.data.attributes?.editorialArtwork?.bannerUber.url
|
||||||
}else if(this.data.attributes?.editorialArtwork?.subscriptionHero){
|
}else if(this.data.attributes?.editorialArtwork?.subscriptionHero){
|
||||||
return this.data.attributes?.editorialArtwork?.subscriptionHero.url
|
return this.data.attributes?.editorialArtwork?.subscriptionHero.url
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue