Help :D Random container item
#1
Hi,

My work mate is trying to write a xbmc script to pick a random movie.
He has added a button in the myvideo.xml to run his script.

In the script he is getting the total of items display using the infolabel
"Container(id).NumItems" , this works without the container id

He then is picking a random number between 1 and the number returned by the above info label.

How can he then select this list item in xbmc?
Control.SetFocus(id,position) looks as if it would work, however, it requires the container ID, which seems to always change etc...

Is there a way in python to get the current container id?
Or, has anyone got any ideas of how else to approach this.

Thanks,

Matt
Reply

Logout Mark Read Team Forum Stats Members Help
Help :D Random container item0