fix: correct artist page fallback URL and picture field

Agent-Logs-Url: https://github.com/monochrome-music/monochrome/sessions/f6c0d1c5-5b9f-486a-a3c1-333a4bcb62c4

Co-authored-by: binimum <61615730+binimum@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-17 08:23:20 +00:00 committed by GitHub
parent 4f57e42d26
commit ef71d402e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View file

@ -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') {

View file

@ -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',
};