Rename variable with conflicting name
This commit is contained in:
parent
a38e478a47
commit
dd56a7798e
1 changed files with 2 additions and 2 deletions
|
|
@ -207,14 +207,14 @@ func (e *externalMetadata) SimilarSongs(ctx context.Context, id string, count in
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *externalMetadata) TopSongs(ctx context.Context, artistName string, count int) (model.MediaFiles, error) {
|
func (e *externalMetadata) TopSongs(ctx context.Context, artistName string, count int) (model.MediaFiles, error) {
|
||||||
agents := e.initAgents(ctx)
|
allAgents := e.initAgents(ctx)
|
||||||
artist, err := e.findArtistByName(ctx, artistName)
|
artist, err := e.findArtistByName(ctx, artistName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(ctx, "Artist not found", "name", artistName, err)
|
log.Error(ctx, "Artist not found", "name", artistName, err)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return e.getMatchingTopSongs(ctx, agents, artist, count)
|
return e.getMatchingTopSongs(ctx, allAgents, artist, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *externalMetadata) getMatchingTopSongs(ctx context.Context, allAgents []agents.Interface, artist *auxArtist, count int) (model.MediaFiles, error) {
|
func (e *externalMetadata) getMatchingTopSongs(ctx context.Context, allAgents []agents.Interface, artist *auxArtist, count int) (model.MediaFiles, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue