added property 'dvrId' to the command 'getEvent' that points to the id of a recording.
This commit is contained in:
parent
38b6f4b700
commit
fae2b44333
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue