fix(subsonic): random albums not reshuffling.

See: https://github.com/navidrome/navidrome/issues/3277#issuecomment-2364269787
This commit is contained in:
Deluan 2024-09-20 16:59:46 -04:00
parent 5b89bf747f
commit ecf934feab
5 changed files with 54 additions and 26 deletions

View file

@ -18,6 +18,12 @@ func SetSeed(id string, seed string) {
instance.SetSeed(id, seed)
}
func CurrentSeed(id string) string {
instance.mutex.RLock()
defer instance.mutex.RUnlock()
return instance.seeds[id]
}
func HashFunc() func(id, str string) uint64 {
return instance.HashFunc()
}