2019-07-15, 12:59
Hello
i am currently working on an addon where user can add his NAS Servers etc.
the Problem i am currently running in, is that i need to check if the server is reachable and has content
i dont see any documentation in the Kodi Docs to solve this, i decide to code an Ping method to check if the server is reachable, that shpuld work so far
now i am trying to get the content from the server. I have seen if i Activate a Window with the Buildin Command i can see the Content
(ActivateWindow(10002,protocol://ip ...) now my idea was to create an custom WindowXMLDialog which is dispalying the content in the <content> tag
this also works: $INFO[Window(Home).Property(ContentTag)] (i set the string in my addon)
but if i am now trying to fetch the data from the list:
eg the count
Control = self.getControl(9001)
size = Control.size()
the sze is always 0 , but in the Window i can see the content
any suggestions ?
i am currently working on an addon where user can add his NAS Servers etc.
the Problem i am currently running in, is that i need to check if the server is reachable and has content
i dont see any documentation in the Kodi Docs to solve this, i decide to code an Ping method to check if the server is reachable, that shpuld work so far
now i am trying to get the content from the server. I have seen if i Activate a Window with the Buildin Command i can see the Content
(ActivateWindow(10002,protocol://ip ...) now my idea was to create an custom WindowXMLDialog which is dispalying the content in the <content> tag
this also works: $INFO[Window(Home).Property(ContentTag)] (i set the string in my addon)
but if i am now trying to fetch the data from the list:
eg the count
Control = self.getControl(9001)
size = Control.size()
the sze is always 0 , but in the Window i can see the content
any suggestions ?