From: Kai Sommerfeld Date: Wed, 3 Jan 2018 13:57:24 +0000 (+0100) Subject: HTSP: Expose recording files' start and stop time. X-Git-Tag: v4.2.6~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37b18a9a2545d15c7dfb5a4ffa3c3a7018df1468;p=thirdparty%2Ftvheadend.git HTSP: Expose recording files' start and stop time. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 76a64e3df..21148984c 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -932,7 +932,7 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method htsmsg_field_t *f; const char *s = NULL, *error = NULL, *subscriptionError = NULL; const char *p, *last; - int64_t fsize = -1; + int64_t fsize = -1, start, stop; uint32_t u32; char ubuf[UUID_HEX_SIZE]; @@ -1005,6 +1005,11 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method info = htsmsg_get_list(m, "info"); if (info) htsmsg_set_msg(e, "info", htsmsg_copy(info)); + if (!htsmsg_get_s64(m, "start", &start)) + htsmsg_set_s64(e, "start", start); + if (!htsmsg_get_s64(m, "stop", &stop)) + htsmsg_set_s64(e, "stop", stop); + htsmsg_add_msg(l, NULL, e); } }