![]() |
Get global guisetting.xml setting in PVR 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: Get global guisetting.xml setting in PVR addon (/showthread.php?tid=327344) |
Get global guisetting.xml setting in PVR addon - popy - 2018-01-19 Hey guys. Currently i am adding the possibility to change the default lifetime of recordings in the mediaportal pvr addon. My changes are working except one thing i am struggling with. This is my code: Quote: /* Read setting "pvrrecord.defaultlifetime" from guisettings.xml */and sadly it always fails with: Quote:22:47:06.650 T:9140 ERROR: CAddonCallbacksAddon - V1::KodiAPI::AddOn::CAddonCallbacksAddon::GetAddonSetting - can't find setting 'pvrrecord.defaultlifetime' in 'MediaPortal PVR Client' How do i'll read an setting from guisettings.xml in the file client.cpp of the mediaportal pvr addon? thx pOpY RE: Get global guisetting.xml setting in PVR addon - popy - 2018-01-20 Found the function which XBMC->GetSetting references to from the pvr addon dll: Quote:ool CAddonCallbacksAddon::GetAddonSetting(void *addonData, const char *strSettingName, void *settingValue)Seems that in this function your just able to read the addon settings.xml itself and not the guisettings.xml from Kodi. I am not very deep in kodi development and doesnt know much of its archtiecture. Would be nice if anybody could point me into the right direction how ill can read from an pvr dll addon an "global" kodi setting from guisetting.xml? Help would be appreciated ![]() thx pOpY |