Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
Core 2022-09-15 00:18:10 +01:00
parent be09ccd377
commit bf6c439927
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
2 changed files with 6 additions and 1 deletions

View file

@ -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);