mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 04:57:37 +03:00
Return genres in search3 endpoint.
This commit is contained in:
parent
bb7186ce2f
commit
f69c27d146
3 changed files with 12 additions and 4 deletions
|
@ -154,6 +154,10 @@ func (r *albumRepository) purgeEmpty() error {
|
|||
func (r *albumRepository) Search(q string, offset int, size int) (model.Albums, error) {
|
||||
results := model.Albums{}
|
||||
err := r.doSearch(q, offset, size, &results, "name")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = r.loadAlbumGenres(&results)
|
||||
return results, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue