mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-05 01:38:51 +01:00
Playlists now have all metadata. Also removed some duplicated code
This commit is contained in:
parent
516bd3bddf
commit
3cefc321b8
6 changed files with 23 additions and 55 deletions
|
|
@ -94,9 +94,6 @@ func (c *BrowsingController) buildDirectory(d *engine.DirectoryInfo) *responses.
|
|||
dir.Starred = &d.Starred
|
||||
}
|
||||
|
||||
dir.Child = make([]responses.Child, len(d.Entries))
|
||||
for i, entry := range d.Entries {
|
||||
dir.Child[i] = c.ToChild(entry)
|
||||
}
|
||||
dir.Child = c.ToChildren(d.Entries)
|
||||
return dir
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue