mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-16 23:28:44 +01:00
Implemented getAlbumList with type=random
This commit is contained in:
parent
867ca0580c
commit
9bea04f330
8 changed files with 44 additions and 5 deletions
|
|
@ -23,6 +23,7 @@ func (c *GetAlbumListController) Prepare() {
|
|||
inject.ExtractAssignable(utils.Graph, &c.listGen)
|
||||
|
||||
c.types = map[string]strategy{
|
||||
"random": func(o int, s int) (*domain.Albums, error) { return c.listGen.GetRandom(o, s) },
|
||||
"newest": func(o int, s int) (*domain.Albums, error) { return c.listGen.GetNewest(o, s) },
|
||||
"recent": func(o int, s int) (*domain.Albums, error) { return c.listGen.GetRecent(o, s) },
|
||||
"frequent": func(o int, s int) (*domain.Albums, error) { return c.listGen.GetFrequent(o, s) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue