2018-01-19, 23:54
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:
How do i'll read an setting from guisettings.xml in the file client.cpp of the mediaportal pvr addon?
thx
pOpY
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:
if (!XBMC->GetSetting("pvrrecord.defaultlifetime", &g_KeepDaysDefault))
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'keepmethodtype' setting, falling back to 'Always' as default");
g_KeepDaysDefault = 100;
}
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