]> git.vomp.tv Git - jsonserver.git/commitdiff
Short text instead of description in getChannelSchedule, fix ok result return
authorChris Tallon <chris@vomp.tv>
Sun, 28 Apr 2013 16:32:51 +0000 (17:32 +0100)
committerChris Tallon <chris@vomp.tv>
Sun, 28 Apr 2013 16:32:51 +0000 (17:32 +0100)
handler.c

index 71cb9609de1579614a3900a1aa36e3d853e4c610..d655e2df99d7fa7b6a06d47ce0339d549c34fd93 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -681,10 +681,12 @@ bool jsonserver_channelschedule(Json::Value& js, const char* postData)
     oneEvent["Time"] = (Json::UInt)event->StartTime();
     oneEvent["Duration"] = event->Duration();
     oneEvent["Title"] = event->Title() ? event->Title() : "";
-    oneEvent["Description"] = event->Description() ? event->Description() : "";
+    oneEvent["ShortText"] = event->ShortText() ? event->ShortText() : "";
+    //oneEvent["Description"] = event->Description() ? event->Description() : "";
     jsevents.append(oneEvent);
   }
 
+  js["Result"] = true;
   js["Events"] = jsevents;
   return true;
 }