Include tracks in TopSongs where the requested artist is the album artist
This commit is contained in:
@@ -151,7 +151,10 @@ func (e *externalInfo) TopSongs(ctx context.Context, artist string, count int) (
|
||||
for _, t := range tracks {
|
||||
mfs, err := e.ds.MediaFile(ctx).GetAll(model.QueryOptions{
|
||||
Filters: squirrel.And{
|
||||
squirrel.Or{
|
||||
squirrel.Like{"artist": artist},
|
||||
squirrel.Like{"album_artist": artist},
|
||||
},
|
||||
squirrel.Like{"title": t.Name},
|
||||
},
|
||||
Sort: "year",
|
||||
|
||||
Reference in New Issue
Block a user