]> git.vomp.tv Git - jsonserver.git/commitdiff
Add recording length to protocol
authorChris Tallon <chris@telescope.org>
Sun, 31 Mar 2013 17:54:02 +0000 (18:54 +0100)
committerChris Tallon <chris@telescope.org>
Sun, 31 Mar 2013 17:54:02 +0000 (18:54 +0100)
handler.c

index 9976be87e205bbf6f41625b7704db3473bf4989e..ac4dbc5f0d77cfc9c08ef555d6ab2c923587d684 100644 (file)
--- 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);