fix
Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
parent
be09ccd377
commit
bf6c439927
2 changed files with 6 additions and 1 deletions
|
@ -2247,6 +2247,11 @@ const app = new Vue({
|
|||
artistId = item.relationships.artists.data[0].id;
|
||||
}
|
||||
}
|
||||
if (item.relationships.albums && item.relationships.albums.data.length > 0) {
|
||||
if (item.relationships.albums.data[0].attributes.artistUrl) {
|
||||
artistId = item.relationships.albums.data[0].attributes.artistUrl.split("/").pop();
|
||||
}
|
||||
}
|
||||
if (artistId == "") {
|
||||
const url = item.relationships.catalog.data[0].attributes.artistUrl;
|
||||
artistId = url.substring(url.lastIndexOf("/") + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue