Only the Artists collection requires a library id?

This commit is contained in:
Rob Emery 2025-10-12 23:18:00 +01:00
parent 9922847447
commit 3636c3a513

View File

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