Is it possible to toggle visibility of a label in a listitem?
#1
Hi,

I am currently writing a script that gathers urls and names for streaming media from a rss and puts them in a ControlList. So I put the gathered data (url + name) in a listitem and allocate them to a separate label with setLabel. Now I don't want the url to be visible on screen. Is there any possibility to toggle the visibility of this item or to pass on a hidden variable so that the player knows what to play?

Thanks for your help in advance

akaigotchi
Reply
#2
you can either use a multi dimensional array/tuple

like myarray[file to display,url to use,image to display] and append all found entries.
then use addItem('file to display') to add items to controllist
then function(myarray[controllist.getselectedposition()][2]) this would run the function using the requested url of the file being displayed.

you will need to look at the xbmc python manual for the correct syntax of these commands..
Server: FreeNas 9 NAS: 6*3TB - Kodi Sql Database
Kodi Systems: Nvidia Shield Pro, G-Box Q (OpenElec), RikoMagic MK802 IV[
Skin: reFocus
Reply
#3
Hey thanks! Works perfectly. According to your recommendation I used a dictionary to accomplish this :-) If the script is ready and tested I may be publishing it on xbmcscripts.com.

Cheers
akaigotchi
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to toggle visibility of a label in a listitem?0