Improve TopSongs findMatchingTrack by de-prioritizing compilations (#2532)

in reference to https://github.com/navidrome/navidrome/issues/1701
This commit is contained in:
Stephan Wahlen 2023-10-31 21:00:53 +01:00 committed by GitHub
parent 9ff95b6ced
commit 9094f41f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ func (e *externalMetadata) findMatchingTrack(ctx context.Context, mbid string, a
},
squirrel.Like{"order_title": strings.TrimSpace(sanitize.Accents(title))},
},
Sort: "starred desc, rating desc, year asc",
Sort: "starred desc, rating desc, year asc, compilation asc ",
Max: 1,
})
if err != nil || len(mfs) == 0 {