Improve TopSongs findMatchingTrack by de-prioritizing compilations (#2532)
in reference to https://github.com/navidrome/navidrome/issues/1701
This commit is contained in:
parent
9ff95b6ced
commit
9094f41f25
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue