Improve TopSongs findMatchingTrack by de-prioritizing compilations (#2532)
in reference to https://github.com/navidrome/navidrome/issues/1701
This commit is contained in:
@@ -414,7 +414,7 @@ func (e *externalMetadata) findMatchingTrack(ctx context.Context, mbid string, a
|
|||||||
},
|
},
|
||||||
squirrel.Like{"order_title": strings.TrimSpace(sanitize.Accents(title))},
|
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,
|
Max: 1,
|
||||||
})
|
})
|
||||||
if err != nil || len(mfs) == 0 {
|
if err != nil || len(mfs) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user