From 53c1e9ec3511ce8e1442928c1e5ba78d22b60233 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 20 Oct 2020 23:52:45 -0400 Subject: [PATCH] Include tracks in TopSongs where the requested artist is the album artist --- core/external_info.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/external_info.go b/core/external_info.go index 32bd4fe2..833adb83 100644 --- a/core/external_info.go +++ b/core/external_info.go @@ -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",