return dvr_autorec_entry_class_time_list(o, "Any");
}
+static htsmsg_t *
+dvr_autorec_entry_class_extra_list(void *o)
+{
+ return dvr_entry_class_duration_list(o, "Not set (use channel or DVR config)", 4*60, 1);
+}
+
static htsmsg_t *
dvr_autorec_entry_class_minduration_list(void *o)
{
.id = "start_extra",
.name = "Extra Start Time",
.off = offsetof(dvr_autorec_entry_t, dae_start_extra),
- .opts = PO_DURATION,
+ .list = dvr_autorec_entry_class_extra_list,
+ .opts = PO_DURATION | PO_SORTKEY
},
{
.type = PT_TIME,
.id = "stop_extra",
.name = "Extra Stop Time",
.off = offsetof(dvr_autorec_entry_t, dae_stop_extra),
- .opts = PO_DURATION,
+ .list = dvr_autorec_entry_class_extra_list,
+ .opts = PO_DURATION | PO_SORTKEY
},
{
.type = PT_U32,