2016-09-09, 23:18
I've got a weird issue on a service addon.
I'm using a Monitor instance to check for changes to settings and then get the script to update its settings with the new values. However, it looks like the changes aren't being picked up.
I retrieve the settings as follows:
The Monitor fires correctly when settings are changed but, if I print this setting value to the log I can see it's different to the value that's showed in the settings.xml file in my addon_data folder.
E.g. settings.xml shows:but my debug log after the settings are updated showsThese are the values that were in place when Kodi started.
Are settings cached at all? Or is there any other reason why the setting retrieval isn't working?
I'm using a Monitor instance to check for changes to settings and then get the script to update its settings with the new values. However, it looks like the changes aren't being picked up.
I retrieve the settings as follows:
Code:
_A_ = xbmcaddon.Addon()
_GET_ = _A_.getSetting
# in body of service
leagues = _GET_("watchedleagues")
The Monitor fires correctly when settings are changed but, if I print this setting value to the log I can see it's different to the value that's showed in the settings.xml file in my addon_data folder.
E.g. settings.xml shows:
Code:
<setting id="watchedleagues" value="[118996114]" />
Code:
22:16:44 T:139767161288448 DEBUG: bbclivefootballscores: [118996114, 118996307, 118998135, 118996115, 118996117]
Are settings cached at all? Or is there any other reason why the setting retrieval isn't working?