2022-01-07, 21:40
Got it working with the following changes:
Using it with screen 1:
It was not needed to add another function, just an additional 'else if' statement in parse.cpp.cpp:diff -durN kodi4smartie-2.0.2a3_orig/parse.cpp kodi4smartie-2.0.2a3/parse.cpp
--- kodi4smartie-2.0.2a3_orig/parse.cpp 2017-06-10 04:50:38.000000000 +0200
+++ kodi4smartie-2.0.2a3/parse.cpp 2022-01-07 19:18:29.888050200 +0100
@@ -454,6 +454,10 @@
{
item_str = to_wstring(item_val.as_number().to_double());
}
+ else if (item_val.is_boolean())
+ {
+ item_str = conversions::to_string_t(item_val.as_bool() ? "true" : "false");
+ }
string results = string(item_str.begin(), item_str.end());
sanitize(results);
Using it with screen 1:
xml:$Time(hh: nn: ss) $dll(if,1,$dll(kodi4smartie,5,PVR.GetProperties,recording)#true,Rec#| $dll(kodi4smartie,9,,))