mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 04:00:38 +03:00
Don't retrieve all artist external metadata if we just want artist images
This commit is contained in:
parent
4a25e6d3d8
commit
c031167bb1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user