added property 'dvrId' to the command 'getEvent' that points to the id of a recording.

This commit is contained in:
John Törnblom 2011-08-30 18:15:09 +02:00
parent 38b6f4b700
commit fae2b44333

View file

@ -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);