use sub dir model for artist in folder search

This commit is contained in:
sentriz
2019-05-28 17:02:27 +01:00
parent 8429c980f9
commit 47c4743682
3 changed files with 36 additions and 30 deletions

View File

@@ -55,3 +55,12 @@ func makeArtistFromFolder(f *model.Folder) *subsonic.Artist {
Name: f.Name,
}
}
func makeDirFromFolder(f *model.Folder, children []*subsonic.Child) *subsonic.Directory {
return &subsonic.Directory{
ID: f.ID,
Parent: f.ParentID,
Name: f.Name,
Children: children,
}
}