fix(subsonic): use SQLite RANDOM() sorting in getRandomSongs, for faster results
Related to #5558 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
11640f2e4d
commit
cf1f190bb5
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ func SongsByAlbum(albumId string) Options {
|
||||||
|
|
||||||
func SongsByRandom(genre string, fromYear, toYear int) Options {
|
func SongsByRandom(genre string, fromYear, toYear int) Options {
|
||||||
options := Options{
|
options := Options{
|
||||||
Sort: "random",
|
Sort: "random()",
|
||||||
}
|
}
|
||||||
ff := And{}
|
ff := And{}
|
||||||
if genre != "" {
|
if genre != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue