Skip to content

🎧 Your Personal Streaming Service

fix(subsonic): use SQLite RANDOM() sorting in getRandomSongs, for faster results

Deluancf1f190bb57d
diff --git a/server/subsonic/filter/filters.go b/server/subsonic/filter/filters.go
index 8ba4f0ff9..856870a6c 100644
--- a/server/subsonic/filter/filters.go
+++ b/server/subsonic/filter/filters.go
@@ -92,7 +92,7 @@ func SongsByAlbum(albumId string) Options {
func SongsByRandom(genre string, fromYear, toYear int) Options {
options := Options{
- Sort: "random",
+ Sort: "random()",
}
ff := And{}
if genre != "" {