mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Make first WebUI random page stick
This commit is contained in:
parent
653b4d97f9
commit
3977ef6e0f
6 changed files with 75 additions and 21 deletions
|
@ -42,6 +42,10 @@ func (r sqlRestful) parseRestOptions(options ...rest.QueryOptions) model.QueryOp
|
|||
qo.Order = strings.ToLower(options[0].Order)
|
||||
qo.Max = options[0].Max
|
||||
qo.Offset = options[0].Offset
|
||||
if seed, ok := options[0].Filters["seed"].(string); ok {
|
||||
qo.Seed = seed
|
||||
delete(options[0].Filters, "seed")
|
||||
}
|
||||
qo.Filters = r.parseRestFilters(options[0])
|
||||
}
|
||||
return qo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue