Kodi Community Forum
Linux return info if recording - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Linux return info if recording (/showthread.php?tid=200687)



return info if recording - tul18 - 2014-07-26

hi, i been trying to find out a way to json rpc return if the xbmc is recording.

i built in a script so it do several checks to perform before suspend, but when we add a programed recording, when xbmc wakeups and start recording it doesnt actually play the recording so my script doesnt detect any activity by xbmc, so i need to check if pvr is recording.

can some post me the example with json rpc ?


RE: return info if recording - tul18 - 2014-07-30

hey, pls some1 know command, i have searched and searched and i havent got any luck with pvr.getproperties, i just cant do the json request right :S


RE: return info if recording - Montellese - 2014-07-30

Completely untested since I don't have a PVR backend
Code:
{ "jsonrpc": "2.0", "method": "PVR.GetProperties", "params": { "properties": [ "recording" ] }, "id": 1 }



RE: return info if recording - tul18 - 2014-07-30