From fae2b44333a0d8164bc40a70ff66d3d1164dd062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Tue, 30 Aug 2011 18:15:09 +0200 Subject: [PATCH] added property 'dvrId' to the command 'getEvent' that points to the id of a recording. --- src/htsp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/htsp.c b/src/htsp.c index d3ef53f0..8bb803b1 100644 --- a/src/htsp.c +++ b/src/htsp.c @@ -712,6 +712,7 @@ htsp_build_event(event_t *e) { htsmsg_t *out; event_t *n; + dvr_entry_t *de; out = htsmsg_create_map(); @@ -733,6 +734,10 @@ htsp_build_event(event_t *e) if(e->e_content_type) htsmsg_add_u32(out, "contentType", e->e_content_type); + if((de = dvr_entry_find_by_event(e)) != NULL) { + htsmsg_add_u32(out, "dvrId", de->de_id); + } + n = RB_NEXT(e, e_channel_link); if(n != NULL) htsmsg_add_u32(out, "nextEventId", n->e_id);