]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: expose duplicate state for dvr entries.
authorKai Sommerfeld <kai.sommerfeld@gmx.com>
Wed, 27 Jun 2018 21:08:34 +0000 (23:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 1 Jul 2018 09:43:34 +0000 (11:43 +0200)
src/htsp_server.c

index a9e1f9ea3efbc6c39b9e7678bc253ca32c21549e..a873c4aa882dbacb996763d392f3fd81f977abdf 100644 (file)
@@ -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);