Kodi Community Forum

Full Version: Problem with String's :
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"
use the new getinfolabel() command:

xbmc.getinfolabel("skin.string(weathmod)")
cheers nuka1195..thats sorted it for me...