Accessing my[video/music/etc]nav.xml lists
#1
Tbh, I just want to check there's no way I can do this...

I've been trying to access the lists produced by the various mynav files, but always get an access violation error. All I'm trying to do (initially) is to get how many items are in the list with the following code:

Code:
self.window = xbmcgui.getCurrentWindowId()
list = xbmcgui.Window(self.window).getControl(50)
log("Number of items: " + str(list.size() ))

Yes, I know there are other ways to get the number of items Big Grin but that's just an initial test to get access to the list. Am I right that this just isn't possible?
Reply
#2
I think* it should be -

Code:
self.window = xbmcgui.Window(xbmcgui.getCurrentWindowId())
list = self.window.getControl(50)
Reply
#3
You're absolutely correct, it should have been. Many thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Accessing my[video/music/etc]nav.xml lists0