mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
do not look up by artist name if empty
This commit is contained in:
parent
66a201cd28
commit
cf88608376
4
core/external/provider.go
vendored
4
core/external/provider.go
vendored
@ -732,6 +732,10 @@ func (e *provider) findArtist(ctx context.Context, artistName, id string) (*auxA
|
||||
}
|
||||
}
|
||||
|
||||
if artistName == "" {
|
||||
return nil, model.ErrNotFound
|
||||
}
|
||||
|
||||
artists, err := e.ds.Artist(ctx).GetAll(model.QueryOptions{
|
||||
Filters: squirrel.Like{"artist.name": artistName},
|
||||
Max: 1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user