]> git.vomp.tv Git - jsonserver.git/commitdiff
add IsNew to recordings
authorChris Tallon <chris@telescope.org>
Tue, 2 Apr 2013 21:26:08 +0000 (22:26 +0100)
committerChris Tallon <chris@telescope.org>
Tue, 2 Apr 2013 21:26:08 +0000 (22:26 +0100)
handler.c

index ac4dbc5f0d77cfc9c08ef555d6ab2c923587d684..6076d6c2a7286c4fe54e1acdc1223c8082bb8396 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -143,6 +143,7 @@ bool jsonserver_reclist(Json::Value& js)
     Json::Value oneRec;
     oneRec["StartTime"] = (Json::UInt)recording->Start();
     oneRec["Length"] = (Json::UInt)recording->LengthInSeconds();
+    oneRec["IsNew"] = recording->IsNew();
     oneRec["Name"] = recording->Name();
     oneRec["Filename"] = recording->FileName();
     jsrecordings.append(oneRec);