From 6414f45246085398ec9ba89a7b3f5a21c0967421 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Wed, 29 May 2013 00:50:13 +0100 Subject: [PATCH] Add EPG event ID to timer list --- handler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/handler.c b/handler.c index 54a0969..c19ac0a 100644 --- a/handler.c +++ b/handler.c @@ -821,6 +821,13 @@ bool jsonserver_timerlist(Json::Value& js) oneTimer["Day"] = (int)timer->Day(); oneTimer["WeekDays"] = timer->WeekDays(); oneTimer["Name"] = timer->File(); + + const cEvent* event = timer->Event(); + if (event) + oneTimer["EventID"] = event->EventID(); + else + oneTimer["EventID"] = 0; + jstimers.append(oneTimer); } -- 2.39.5