Kodi Community Forum

Full Version: Read and Write Settings - Help needed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi @ all,

last time i created an addon. But i have some problems with read and write settings. Read and write to skin settings is no problem and works perfect but the addon should use it's own settings.

i tried the following:

addon = xbmcaddon.Addon()

addon.setSettting('mysetting','blabla')

This works fine and writes the line "<setting id="mysetting" value="blabla" />

string = addon.getSettting('mysetting')

In this case string is always empty - can anybode help to read the setting correctly ?

Thx
(2016-06-07, 16:52)hawkeyexp Wrote: [ -> ]string = addon.getSettting('mysetting')

nothing wrong with this code.

in case you're just testing things by setting a setting and trying to get it right after,
you need to put a bit of sleep inbetween.
it make no difference if the setting was written 1 second ago or 1 hour :-(
can you upload the addon somewhere so i can have a look?
Something about the case of the commands worry me. Lower annd upper first letter.
(2016-06-07, 21:58)Torben Wrote: [ -> ]Something about the case of the commands worry me. Lower annd upper first letter.

sorry was a typo here in the post not in my code - coreected - lower first letter now
I failed to notice the three t's in settting.. a hint that you indeed typed the code here. Sorry. I'll go away now :-)