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
+1 -1
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 {