[XBOX] script question
#1
I found old script - dbox2_tv_viewer
there is code`s part:

try:
if os.path.isfile(CFG_FILE) == True:
append_config = open(CFG_FILE, 'a')
append_config.write(ip_address + ',' + httpport + ',' + sptsport + ',' + pesport + ',' + dolbysound + ',' + stopplayback + ',' + lockrc + '\n')
append_config.close()
else:
new_config = open(CFG_FILE, 'w')
new_config.write(ip_address + ',' + httpport + ',' + sptsport + ',' + pesport + ',' + dolbysound + ',' + stopplayback + ',' + lockrc + '\n')
new_config.close()
return 'ok'
except:
return 'error'

i don`t know why but saving not works and script looping Sad
May be someone can help?

Thanks.

PS Xbox pre 2.1 sep 2008.
Reply
#2
Pretty sure we support dbox w/o a script now. No way in hell someone will support that old a build of XBMC.
Reply
#3
althekiller
thanks. I found problem and script works
now i need only UTF-8 string conversion solution.
Reply

Logout Mark Read Team Forum Stats Members Help
[XBOX] script question0