Don't retrieve all artist external metadata if we just want artist images

This commit is contained in:
Deluan 2023-02-03 11:06:53 -05:00
parent 4a25e6d3d8
commit c031167bb1
1 changed files with 2 additions and 1 deletions

View File

@ -322,11 +322,12 @@ func (e *externalMetadata) SimilarSongs(ctx context.Context, id string, count in
}
func (e *externalMetadata) ArtistImage(ctx context.Context, id string) (*url.URL, error) {
artist, err := e.refreshArtistInfo(ctx, id)
artist, err := e.getArtist(ctx, id)
if err != nil {
return nil, err
}
e.callGetImage(ctx, e.ag, artist)
if utils.IsCtxDone(ctx) {
log.Warn(ctx, "ArtistImage call canceled", ctx.Err())
return nil, ctx.Err()