From: Kai Sommerfeld Date: Wed, 3 Jan 2018 13:57:24 +0000 (+0100) Subject: HTSP: Expose recording files' start and stop time. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff958c560fdeea99f16d36bd54204e8388fa636e;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 4600e9257..1ac7c19f3 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -942,7 +942,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]; @@ -1026,6 +1026,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); } }