|
|
|
@ -46,12 +46,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele |
|
|
|
|
|
|
|
let web = MediaItem(name: "web", path:"", root: "/srv/samba/ren/web", type: ItemType.WEBROOT) |
|
|
|
web.loaded = true |
|
|
|
let google = MediaItem(name: "google", path:"www.google.de", root: "", type: ItemType.FOLDER) |
|
|
|
let a = MediaItem(name: "www.google.de", path:"www.google.de", root: "", type: ItemType.WEB) |
|
|
|
google.children = [ a ] |
|
|
|
web.children = [ |
|
|
|
google |
|
|
|
] |
|
|
|
let google = MediaItem(name: "google", path:"www.google.de", root: "", type: ItemType.DETAILS) |
|
|
|
google.loaded = true |
|
|
|
web.children = [ google ] |
|
|
|
let urlPath = Bundle.main.url(forResource: "links", withExtension: "html") |
|
|
|
let parser = HtmlParser(url: urlPath) |
|
|
|
parser.parse() |
|
|
|
|
|
|
|
google.children = parser.items |
|
|
|
|
|
|
|
roots.append(NetworkManager.sharedInstance.favorites) |
|
|
|
roots.append(web) |
|
|
|
|