add init search2

This commit is contained in:
sentriz
2019-05-28 16:12:55 +01:00
parent e7ed19abd9
commit 8429c980f9
5 changed files with 114 additions and 48 deletions

No files matched your search

+9 -6
View File
@@ -6,13 +6,16 @@ import (
)
func makeChildFromFolder(f *model.Folder, parent *model.Folder) *subsonic.Child {
return &subsonic.Child{
ID: f.ID,
Title: f.Name,
CoverID: f.CoverID,
ParentID: parent.ID,
IsDir: true,
child := &subsonic.Child{
ID: f.ID,
Title: f.Name,
CoverID: f.CoverID,
IsDir: true,
}
if parent != nil {
child.ParentID = parent.ID
}
return child
}
func makeChildFromTrack(t *model.Track, parent *model.Folder) *subsonic.Child {