How to add/manipulate listItems?
#1
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:
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)
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?
Reply
#2
Afaik no. List content are not available. Except the players playlist.. that can be sniffed by nsa all over. ;-) well. The entire database can.. so its probably not a security issue. Would be a most welcomed basic feature though.
Reply

Logout Mark Read Team Forum Stats Members Help
How to add/manipulate listItems?0