Kodi Community Forum

Full Version: Difference between Container.Refresh and Container.Update?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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