Skip to content

Commit fc5a167

Browse files
ksoooFlole998
authored andcommitted
HTSP: Expose broadcast type in 'autorecEntryAdd' and 'autorecEntryUpdate'. Handle broadcast type in 'addAutorecEntry' and 'updateAutorecEntry'.
1 parent facbd4e commit fc5a167

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/htsp_server.c‎

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

5656
#define HTSP_ASYNC_OFF 0x00
5757
#define HTSP_ASYNC_ON 0x01
@@ -611,6 +611,8 @@ htsp_serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int
611611
htsmsg_add_u32(conf, "record", !retval ? u32 : DVR_AUTOREC_RECORD_ALL);
612612
if (!(retval = htsmsg_get_u32(in, "maxCount", &u32)) || add)
613613
htsmsg_add_u32(conf, "maxcount", !retval ? u32 : 0); // 0 = unlimited
614+
if (!(retval = htsmsg_get_u32(in, "broadcastType", &u32)) || add)
615+
htsmsg_add_u32(conf, "broadcastType", !retval ? u32 : 0); // 0 = all
614616
if (!(retval = htsmsg_get_s64(in, "startExtra", &s64)) || add)
615617
htsmsg_add_s64(conf, "start_extra", !retval ? (s64 < 0 ? 0 : s64) : 0); // 0 = dvr config
616618
if (!(retval = htsmsg_get_s64(in, "stopExtra", &s64)) || add)
@@ -1222,6 +1224,7 @@ htsp_build_autorecentry(htsp_connection_t *htsp, dvr_autorec_entry_t *dae, const
12221224
htsmsg_add_s64(out, "stopExtra", dvr_autorec_get_extra_time_post(dae));
12231225
htsmsg_add_u32(out, "dupDetect", dae->dae_record);
12241226
htsmsg_add_u32(out, "maxCount", dae->dae_max_count);
1227+
htsmsg_add_u32(out, "broadcastType", dae->dae_btype);
12251228

12261229
if(dae->dae_title) {
12271230
htsmsg_add_str(out, "title", dae->dae_title);

0 commit comments

Comments
 (0)