From f0ee582884fe16987834cfc235b2c36000e06846 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 31 Mar 2013 18:54:02 +0100 Subject: [PATCH] Add recording length to protocol --- handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/handler.c b/handler.c index 9976be8..ac4dbc5 100644 --- a/handler.c +++ b/handler.c @@ -142,6 +142,7 @@ bool jsonserver_reclist(Json::Value& js) { Json::Value oneRec; oneRec["StartTime"] = (Json::UInt)recording->Start(); + oneRec["Length"] = (Json::UInt)recording->LengthInSeconds(); oneRec["Name"] = recording->Name(); oneRec["Filename"] = recording->FileName(); jsrecordings.append(oneRec); -- 2.39.5