It would be possible to change the “listitem” of a given directory item, at run time?
I wanted to use an option from a custom context menu, to change the “setInfo” from the “ListItem”, of the “addDirectoryItem” function only on the item that received the right-click.
The context menu and the new “setinfo” I already have, I do not know how to change this at runtime!
Change it:
PHP Code:
liz = xbmcgui.ListItem(name, iconImage='DefaultFolder.png', thumbnailImage=iconimage)
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=pasta, totalItems=total)
for this, at run time:
PHP Code:
liz = xbmcgui.ListItem(name, iconImage='DefaultFolder.png', thumbnailImage=iconimage)
liz.setInfo(type="Video", infoLabels={'Genre' : 'Comedy'})
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=pasta, totalItems=total)