From: Chris Tallon Date: Sun, 31 Mar 2013 17:54:02 +0000 (+0100) Subject: Add recording length to protocol X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=f0ee582884fe16987834cfc235b2c36000e06846;p=jsonserver.git Add recording length to protocol --- 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);