]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
added property 'dvrId' to the command 'getEvent' that points to the id of a recording. 37/head
authorJohn Törnblom <john.tornblom@gmail.com>
Tue, 30 Aug 2011 16:15:09 +0000 (18:15 +0200)
committerJohn Törnblom <john.tornblom@gmail.com>
Tue, 30 Aug 2011 16:19:07 +0000 (18:19 +0200)
src/htsp.c

index d3ef53f09f7479c016223b4ce0d7d9008b49941b..8bb803b1726a43fc58fc0171ad7d0a3cf754cc2e 100644 (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);