From bcf49414adb38448c436da27fb81708e8ba588fc Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 11 Aug 2013 17:43:46 +0100 Subject: [PATCH] Add currently-recording flag to recordings list --- handler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handler.c b/handler.c index 1364ca9..cbb66d5 100644 --- a/handler.c +++ b/handler.c @@ -180,6 +180,11 @@ bool jsonserver_reclist(Json::Value& js) oneRec["Name"] = recording->Name(); oneRec["Filename"] = recording->FileName(); oneRec["FileSizeMB"] = recording->FileSizeMB(); + + cRecordControl *rc = cRecordControls::GetRecordControl(recording->FileName()); + if (rc) oneRec["CurrentlyRecording"] = true; + else oneRec["CurrentlyRecording"] = false; + jsrecordings.append(oneRec); } js["Recordings"] = jsrecordings; -- 2.39.5