Skip to content

Commit 808a87a

Browse files
jahutchiFlole998
authored andcommitted
HTSP: Expose is_new flag in EPG event data
This commit adds the is_new flag to the EPG event data sent to HTSP clients. By including this property, clients such as Kodi (with the pvr.hts addon) can now detect whether a broadcast is marked as new and set corresponding flags (e.g. EPG_TAG_FLAG_IS_NEW in Kodi). This enhances the metadata available to clients and supports improved EPG event handling and display. A corresponding pull request will also be submitted to the pvr.hts project to make use of this flag when obtaining EPG event guide data from Tvheadend.
1 parent 0f74b0a commit 808a87a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/htsp_server.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
static void *htsp_server, *htsp_server_2;
5353

54-
#define HTSP_PROTO_VERSION 42
54+
#define HTSP_PROTO_VERSION 43
5555

5656
#define HTSP_ASYNC_OFF 0x00
5757
#define HTSP_ASYNC_ON 0x01
@@ -1430,6 +1430,8 @@ htsp_build_event
14301430
htsmsg_add_u32(out, "copyrightYear", e->copyright_year);
14311431
if (e->first_aired)
14321432
htsmsg_add_s64(out, "firstAired", e->first_aired);
1433+
if (e->is_new)
1434+
htsmsg_add_u32(out, "isNew", e->is_new);
14331435
epg_broadcast_get_epnum(e, &epnum);
14341436
htsp_serialize_epnum(out, &epnum, NULL);
14351437
if (!strempty(e->image))

0 commit comments

Comments
 (0)