Skip to content

Commit dd82541

Browse files
ksoooFlole998
authored andcommitted
HTSP: Expose DVR configuration id in 'dvrEntryAdd', 'dvrEntryUpdate', 'autorecEntryAdd', 'autorecEntryUpdate', 'timerecEntryAdd', 'timerecEntryUpdate'.
1 parent 266d035 commit dd82541

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/htsp_server.c‎

Lines changed: 9 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 39
54+
#define HTSP_PROTO_VERSION 40
5555

5656
#define HTSP_ASYNC_OFF 0x00
5757
#define HTSP_ASYNC_ON 0x01
@@ -1133,6 +1133,9 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method
11331133
if(last && de->de_config)
11341134
if ((p = tvh_strbegins(last, de->de_config->dvr_storage)))
11351135
htsmsg_add_str(out, "path", p);
1136+
1137+
if (de->de_config)
1138+
htsmsg_add_str(out, "configId", idnode_uuid_as_str(&de->de_config->dvr_id, ubuf));
11361139
}
11371140

11381141
switch(de->de_sched_state) {
@@ -1239,6 +1242,9 @@ htsp_build_autorecentry(htsp_connection_t *htsp, dvr_autorec_entry_t *dae, const
12391242
htsmsg_add_u32(out, "channel", channel_get_id(dae->dae_channel));
12401243
if (dae->dae_serieslink_uri)
12411244
htsmsg_add_str(out, "serieslinkUri", dae->dae_serieslink_uri);
1245+
if (dae->dae_config)
1246+
htsmsg_add_str(out, "configId", idnode_uuid_as_str(&dae->dae_config->dvr_id, ubuf));
1247+
12421248
htsmsg_add_str(out, "method", method);
12431249

12441250
return out;
@@ -1278,6 +1284,8 @@ htsp_build_timerecentry(htsp_connection_t *htsp, dvr_timerec_entry_t *dte, const
12781284
htsmsg_add_str2(out, "creator", dte->dte_creator);
12791285
if(dte->dte_channel)
12801286
htsmsg_add_u32(out, "channel", channel_get_id(dte->dte_channel));
1287+
if (dte->dte_config)
1288+
htsmsg_add_str(out, "configId", idnode_uuid_as_str(&dte->dte_config->dvr_id, ubuf));
12811289

12821290
htsmsg_add_str(out, "method", method);
12831291

0 commit comments

Comments
 (0)