Increase image resolution for album and artist covers

This commit is contained in:
Eduard Prigoana 2025-10-17 11:49:05 +03:00 committed by GitHub
parent 47bbd7f7b2
commit 0544a0531a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -239,7 +239,7 @@ export class UIRenderer {
try {
const { album, tracks } = await this.api.getAlbum(albumId);
imageEl.src = this.api.getCoverUrl(album.cover, '640');
imageEl.src = this.api.getCoverUrl(album.cover, '1280');
imageEl.style.backgroundColor = '';
const explicitBadge = hasExplicitContent(album) ? this.createExplicitBadge() : '';
@ -285,7 +285,7 @@ export class UIRenderer {
try {
const artist = await this.api.getArtist(artistId);
imageEl.src = this.api.getArtistPictureUrl(artist.picture, '640');
imageEl.src = this.api.getArtistPictureUrl(artist.picture, '750');
imageEl.style.backgroundColor = '';
nameEl.textContent = artist.name;
metaEl.textContent = `${artist.popularity} popularity`;
@ -340,4 +340,4 @@ export class UIRenderer {
cacheInfo.textContent = `Cache: ${stats.memoryEntries}/${stats.maxSize} entries`;
}
}
}
}