From: John Törnblom Date: Tue, 30 Aug 2011 16:15:09 +0000 (+0200) Subject: added property 'dvrId' to the command 'getEvent' that points to the id of a recording. X-Git-Tag: 2.99~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae2b44333a0d8164bc40a70ff66d3d1164dd062;p=thirdparty%2Ftvheadend.git added property 'dvrId' to the command 'getEvent' that points to the id of a recording. --- diff --git a/src/htsp.c b/src/htsp.c index d3ef53f09..8bb803b17 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);