Merge branch 'main' of github.com:monochrome-music/monochrome

This commit is contained in:
Samidy 2026-04-17 17:25:44 +03:00
commit 2ba420ff41
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',
};