Problem with String's :
#1
hi, my script is below. basically im trying to cycle through a list of options to update the value in weathmod.

it initially works when no value was set but after that does nothing. for some reason i cannot get the skin.string value into curr_weath. i have tried several different ways to get the skin.string into a variable but to no avail. can anyone help.. i have the debug on so the script is being executed without errors.

any help appreciated..
------------------------------------------------------------

# this is a simple script to
import xbmc

curr_weath = xbmc.executebuiltin('skin.string(weathmod)')

if curr_weath == 'bottom':
xbmc.executebuiltin('skin.reset(weathmod)')

if curr_weath == 'description':
xbmc.executebuiltin('skin.setstring(weathmod,bottom)')

if curr_weath == 'gamertag':
xbmc.executebuiltin('skin.setstring(weathmod,description)')

if curr_weath == none:
xbmc.executebuiltin('skin.setstring(weathmod,gamertag)')

print "the end"
Server: FreeNas 9 NAS: 6*3TB - Kodi Sql Database
Kodi Systems: Nvidia Shield Pro, G-Box Q (OpenElec), RikoMagic MK802 IV[
Skin: reFocus
Reply
#2
use the new getinfolabel() command:

xbmc.getinfolabel("skin.string(weathmod)")
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
cheers nuka1195..thats sorted it for me...
Server: FreeNas 9 NAS: 6*3TB - Kodi Sql Database
Kodi Systems: Nvidia Shield Pro, G-Box Q (OpenElec), RikoMagic MK802 IV[
Skin: reFocus
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with String's :0