2016-01-18, 00:12
Hi,
In my video addon, I have some list items containing dynamic data -- think download progress percentage, as in for example
* Movie 1 [80% downloaded]
* Movie 2 [100% downloaded]
* Movie 3 [paused]
this kind of thing.
While it's easy to populate the initial list (with xbmcplugin.addDirectoryItem()), I would like to be able to periodically auto-refresh the list every (say) 2 seconds, so that I can update the list items with fresher data.
I have tried spawning a new background thread to do a new setLabel() on the items in question, but alas it does not seem to have any effect.
Is periodically refreshing list item labels possible? If so, how?
In my video addon, I have some list items containing dynamic data -- think download progress percentage, as in for example
* Movie 1 [80% downloaded]
* Movie 2 [100% downloaded]
* Movie 3 [paused]
this kind of thing.
While it's easy to populate the initial list (with xbmcplugin.addDirectoryItem()), I would like to be able to periodically auto-refresh the list every (say) 2 seconds, so that I can update the list items with fresher data.
I have tried spawning a new background thread to do a new setLabel() on the items in question, but alas it does not seem to have any effect.
Is periodically refreshing list item labels possible? If so, how?