2016-06-17, 13:23
Hi,
is there a way to manipulate a listItem via add-on after it has been added? I can't access the list even if I try to:
This will create a new list with just the "test" entry and will overwrite the old items (thumbnails will stay).
I've also tried to solve this with a service which the add-on could connect to via socket. This was far more promising (at least until to the notepad++ crash which ate my work). The problem there was I couldn't add thumbnails and fanart.
I know that I would have to recreate all the controls (like page handling, info and context), but Kodi ignored everything besides the name.
Is there a way to create a "dynamic" list?
is there a way to manipulate a listItem via add-on after it has been added? I can't access the list even if I try to:
Code:
wnd = xbmcgui.Window(xbmcgui.getCurrentWindowId())
list = wnd.getControl(wnd.getFocusId())
list.addItem('test')
This will create a new list with just the "test" entry and will overwrite the old items (thumbnails will stay).
I've also tried to solve this with a service which the add-on could connect to via socket. This was far more promising (at least until to the notepad++ crash which ate my work). The problem there was I couldn't add thumbnails and fanart.
Code:
liz=xbmcgui.ListItem('TEST', iconImage="DefaultFolder.png")
wnd = xbmcgui.Window(xbmcgui.getCurrentWindowId())
list = wnd.getControl(wnd.getFocusId())
list.addItem(liz)
Is there a way to create a "dynamic" list?