Include tracks in TopSongs where the requested artist is the album artist

This commit is contained in:
Deluan
2020-10-20 23:52:45 -04:00
parent 12cedee867
commit 53c1e9ec35
+4 -1
View File
@@ -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.Like{"artist": artist},
squirrel.Or{
squirrel.Like{"artist": artist},
squirrel.Like{"album_artist": artist},
},
squirrel.Like{"title": t.Name},
},
Sort: "year",