do not look up by artist name if empty

This commit is contained in:
Kendall Garner 2026-07-26 09:34:15 -07:00
parent 66a201cd28
commit cf88608376
No known key found for this signature in database
GPG Key ID: 9355F387FE765C94

View File

@ -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,