I'm doing pagination to show only tot link at a time
When showing first page it's all ok
when click on next page, my plugin use the SAME code used for page 1, but xmbc tell me this
Using debug print line, i isolated the problem to be here:
thisPlugin is a global variable, and it's ok,
url is a string, and it's ok
list item is ok, it's something like for examples it can be <xbmcgui.ListItem object at 0x7f431832f710>, as it's defined some row before as:
I'll repeat: the same code is working from first page of link
I printed the sys.argvs
The first call has:
the second has
Why does it happens ?
Why plugin handle is -1 ?!?!
When showing first page it's all ok
when click on next page, my plugin use the SAME code used for page 1, but xmbc tell me this
Code:
WARNING: Attempt to use invalid handle -1
Using debug print line, i isolated the problem to be here:
Code:
xbmcplugin.addDirectoryItem(thisPlugin, url,listItem)
thisPlugin is a global variable, and it's ok,
url is a string, and it's ok
list item is ok, it's something like for examples it can be <xbmcgui.ListItem object at 0x7f431832f710>, as it's defined some row before as:
Code:
listItem = xbmcgui.ListItem(title, thumbnailImage =array_images[count-1])
I'll repeat: the same code is working from first page of link
I printed the sys.argvs
The first call has:
Code:
**** STARTING ********
09:53:47 T:140712672347904 NOTICE: ['plugin://plugin.video.realtebo/', '2', '?item_tot=0&mode=openPage&page_num=0&page_url=a-f']
the second has
Code:
['plugin://plugin.video.realtebo/', '-1', '?item_tot=209&page_num=1&mode=openPage&page_url=a-f']
Why does it happens ?
Why plugin handle is -1 ?!?!