mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Only the Artists collection requires a library id?
This commit is contained in:
parent
9922847447
commit
3636c3a513
@ -143,7 +143,8 @@ func handleArtist(matchResults map[string]string, ret []interface{}, cds *conten
|
||||
allAlbumsForThisArtist, _ := cds.ds.Album(cds.ctx).GetAll(model.QueryOptions{Filters: squirrel.Eq{"album_artist_id": matchResults["Artist"]}})
|
||||
return cds.doAlbums(allAlbumsForThisArtist, o.Path, ret, host)
|
||||
}
|
||||
indexes, err := cds.ds.Artist(cds.ctx).GetIndex(false)
|
||||
libraries, _ := cds.ds.Library(cds.ctx).GetAll()
|
||||
indexes, err := cds.ds.Artist(cds.ctx).GetIndex(false, libraries.IDs())
|
||||
if err != nil {
|
||||
fmt.Printf("Error retrieving Indexes: %+v", err)
|
||||
return nil, err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user