From: Kai Sommerfeld Date: Wed, 27 Jun 2018 21:08:34 +0000 (+0200) Subject: htsp: expose duplicate state for dvr entries. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f9f7f2a62cab74f7c508849b8ccc4126791811;p=thirdparty%2Ftvheadend.git htsp: expose duplicate state for dvr entries. --- diff --git a/src/htsp_server.c b/src/htsp_server.c index a9e1f9ea3..a873c4aa8 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -65,7 +65,7 @@ static void *htsp_server, *htsp_server_2; -#define HTSP_PROTO_VERSION 32 +#define HTSP_PROTO_VERSION 33 #define HTSP_ASYNC_OFF 0x00 #define HTSP_ASYNC_ON 0x01 @@ -1107,6 +1107,9 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method break; } + if (dvr_entry_is_upcoming(de)) + htsmsg_add_u32(out, "duplicate", dvr_entry_is_upcoming_nodup(de) ? 0 : 1); + htsmsg_add_str(out, "state", s); if(error) htsmsg_add_str(out, "error", error);