Update ListItem
#1
Hello
i am trying to update the list items in an dynamic list control

i have set the content via an plugin:

python:
<content>plugin://plugin.video.nfs</content>

in the skin the content is displayed, that works but how can i update single ListItems
my ideas was to set an Property on each ListItem:
python:
list_item.setProperties({ 'nfsId': '1064' })

and in the List is set the label:
xml:
<label>$INFO[Window(Home).Property($INFO[ListItem.Property(nfsId)])]</label>

now my ideas was to update the Home Property '1064' to update the label for the ListItem
but this doesnt work

i think i cant do an INFO Label into another one

i have seen in other Skins that they do this:
xml:
$INFO[Window(Home).Property($PARAM[Page])]

i have tried this in the list:
<focusedlayout width="580" height="98">
     <include content="FocusLayoutProperty">
          <param name="Propy" value="$INFO[Window(Home).Property($INFO[ListItem.Property(nfsId)])]" />
     </include>
</focusedlayout>

but in that case it doesnt work with the List
is there any workaround for this ?
best regards
Reply
#2
mh okay i found a way but i dont now how efficiency this is .. is this even a good solution ?

python:
Items = [..] #My Content
Window = xbmcgui.Window(10000)
List = Window.getControl(600)
List.setStaticContent(items=Items)

...

if OneEntryUpdated:
     List.setStaticContent(items=UpdatedItems)

this works but i dont know how this affect the performance if i have around 100 or more ListItems that get updated each

//Edit
List.setStaticContent crashed Kodi with many items Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Update ListItem0