diff --git a/functions/artist/[id].js b/functions/artist/[id].js index 1c62591..e910f09 100644 --- a/functions/artist/[id].js +++ b/functions/artist/[id].js @@ -116,13 +116,8 @@ class ServerAPI { } async getArtistMetadata(id) { - try { - const response = await this.fetchWithRetry(`/artist/${id}`); - return await response.json(); - } catch { - const response = await this.fetchWithRetry(`/artist?id=${id}`); - return await response.json(); - } + const response = await this.fetchWithRetry(`/artist/?id=${id}`); + return await response.json(); } getArtistPictureUrl(id, size = '750') { diff --git a/js/api.js b/js/api.js index 0d6849f..74dcea7 100644 --- a/js/api.js +++ b/js/api.js @@ -1041,7 +1041,7 @@ export class LosslessAPI { const artist = { ...this.prepareArtist(rawArtist), - picture: rawArtist.picture || primaryData.cover || null, + picture: rawArtist.picture || null, name: rawArtist.name || 'Unknown Artist', };