|
51 | 51 |
|
52 | 52 | static void *htsp_server, *htsp_server_2; |
53 | 53 |
|
54 | | -#define HTSP_PROTO_VERSION 39 |
| 54 | +#define HTSP_PROTO_VERSION 40 |
55 | 55 |
|
56 | 56 | #define HTSP_ASYNC_OFF 0x00 |
57 | 57 | #define HTSP_ASYNC_ON 0x01 |
@@ -1133,6 +1133,9 @@ htsp_build_dvrentry(htsp_connection_t *htsp, dvr_entry_t *de, const char *method |
1133 | 1133 | if(last && de->de_config) |
1134 | 1134 | if ((p = tvh_strbegins(last, de->de_config->dvr_storage))) |
1135 | 1135 | 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)); |
1136 | 1139 | } |
1137 | 1140 |
|
1138 | 1141 | switch(de->de_sched_state) { |
@@ -1239,6 +1242,9 @@ htsp_build_autorecentry(htsp_connection_t *htsp, dvr_autorec_entry_t *dae, const |
1239 | 1242 | htsmsg_add_u32(out, "channel", channel_get_id(dae->dae_channel)); |
1240 | 1243 | if (dae->dae_serieslink_uri) |
1241 | 1244 | 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 | + |
1242 | 1248 | htsmsg_add_str(out, "method", method); |
1243 | 1249 |
|
1244 | 1250 | return out; |
@@ -1278,6 +1284,8 @@ htsp_build_timerecentry(htsp_connection_t *htsp, dvr_timerec_entry_t *dte, const |
1278 | 1284 | htsmsg_add_str2(out, "creator", dte->dte_creator); |
1279 | 1285 | if(dte->dte_channel) |
1280 | 1286 | 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)); |
1281 | 1289 |
|
1282 | 1290 | htsmsg_add_str(out, "method", method); |
1283 | 1291 |
|
|
0 commit comments