Difference between Container.Refresh and Container.Update?
#1
What is the difference between the built-in functions Container.Refresh and Container.Update?

I found some documentation on this page - https://kodi.wiki/view/List_of_built-in_...ilt-in.27s - but it doesn't really explain it.

I'm debugging an addon where Container.Refresh doesn't do anything sometimes. I'm wondering if I should use Container.Update instead.
Reply
#2
(2022-10-16, 10:58)sergiodev Wrote: What is the difference between the built-in functions Container.Refresh and Container.Update?

I found some documentation on this page - https://kodi.wiki/view/List_of_built-in_...ilt-in.27s - but it doesn't really explain it.

I'm debugging an addon where Container.Refresh doesn't do anything sometimes. I'm wondering if I should use Container.Update instead.

I use Container.Refresh in my addon to refresh listitem windows to pickup any changes since the listitems were originally displayed (i.e. maybe a playcount indicator changed etc..).  I believe Container.Update is for adding updates to the container.  Here's a little better documentation.


Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply

Logout Mark Read Team Forum Stats Members Help
Difference between Container.Refresh and Container.Update?0
This forum uses Lukasz Tkacz MyBB addons.