2011-09-05, 23:49
Hi All,
I tring to access the current list after the listed has been load to the screen. I get a message saying the windowid is "10025" but the list size is always zero. What is the windowid of the generic video addon plugin? (The window we are using for addDirectoryItem)
The reason i want access to the current window list is to async update metadata on the background thread without blocking/slowing the UI thread during the call to the imdbapi.com after the list paints to the screen.
BTW: I tring this on the latest released windows version (10.0.0.0 3 Mar 2011) (not the nightly)
Thanks,
slyi
eg:
I tring to access the current list after the listed has been load to the screen. I get a message saying the windowid is "10025" but the list size is always zero. What is the windowid of the generic video addon plugin? (The window we are using for addDirectoryItem)
The reason i want access to the current window list is to async update metadata on the background thread without blocking/slowing the UI thread during the call to the imdbapi.com after the list paints to the screen.
BTW: I tring this on the latest released windows version (10.0.0.0 3 Mar 2011) (not the nightly)
Thanks,
slyi
eg:
PHP Code:
wid = xbmcgui.getCurrentWindowId()
wnd = xbmcgui.Window(wid)
ctrl = wnd.getControl(wnd.getFocusId())
if debug==1:
xbmc.executebuiltin("XBMC.Notification(DebugMsg, Ctrl: "+ str(ctrl) +")")
#currItem = ctrl.getSelectedItem()
#currItem.setLabel('async updating listitem value')
if debug==1:
xbmc.executebuiltin("XBMC.Notification(DebugMsg, Size: "+ str(ctrl.size()) +")")
ctrl.addItem(xbmcgui.ListItem('Adding a new enables a completely different window/list?????))
if debug==1:
xbmc.executebuiltin("XBMC.Notification(DebugMsg, Size: "+ str(ctrl.size()) +")")