Kodi Community Forum
How to get GUISettings from Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: How to get GUISettings from Addon (/showthread.php?tid=100209)



How to get GUISettings from Addon - danips - 2011-04-26

Hello!

Is it possible for an addon to get the values for settings like: epg.daystodisplay and epg.epgupdate?

I have been looking for that in the code with no success Sad


- opdenkamp - 2011-04-27

unless I haven't seen it yet, I don't think we added any code for that on the add-on interface. so the answer would be "no". why would you want that anyway?


- danips - 2011-04-27

They may be useful when you can obtain very big amounts of EPG info:
- epg.daystodisplay: if you know how many days are going to be displayed you can get only the useful time frame.
- epg.update: when consulting highly mutable info or with no certainties to be stable, you may consult only before the update is going to happen, instead of setting random periodic checks.


- spiff - 2011-04-27

these should definitely be exported in the add-on interface, not through reading guisettings.


- opdenkamp - 2011-04-27

makes sense.

I could easily add a method on the interface that XBMC can use to notify an add-on that some settings value relevant to that add-on changed.

something like "OnSettingChanged(const char *strSettingName, const void *newValue)"


- danips - 2011-04-27

Great, thank you ^_^