Use Navidrome's own public images endpoint for getAlbumInfo's imageURLs

This commit is contained in:
Deluan
2023-02-08 14:27:26 -05:00
committed by Deluan Quintão
parent 806713719f
commit b0e58cb885
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ func (api *Router) Search2(r *http.Request) (*responses.Subsonic, error) {
AlbumCount: artist.AlbumCount,
UserRating: artist.Rating,
CoverArt: artist.CoverArtID().String(),
ArtistImageUrl: public.ImageURL(r, artist.CoverArtID(), 0),
ArtistImageUrl: public.ImageURL(r, artist.CoverArtID(), 600),
}
if artist.Starred {
searchResult2.Artist[i].Starred = &as[i].StarredAt