2021-03-19, 23:23
Hello everyone.
I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.
I already create the next page item using a code like this: https://paste.kodi.tv/uviqepobaq
Also, I tried to increment a count after click in the next page item but the variable value is no more than two, because I initialize the variable in one, but when there is a click in the folder "next value" value comes into one again.
Another problem that i have is updating the data into the listitem.
If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.
Thanks.
I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.
I already create the next page item using a code like this: https://paste.kodi.tv/uviqepobaq
Also, I tried to increment a count after click in the next page item but the variable value is no more than two, because I initialize the variable in one, but when there is a click in the folder "next value" value comes into one again.
Another problem that i have is updating the data into the listitem.
If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.
Thanks.