Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] - Use same selection list for extraStart and extraStop selection
in autorec entry editor like in recordings editor.
  • Loading branch information
ksooo authored and perexg committed Sep 28, 2014
1 parent d201a7a commit 74794ab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/dvr/dvr_autorec.c
Expand Up @@ -530,6 +530,12 @@ dvr_autorec_entry_class_time_list_(void *o)
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)
{
Expand Down Expand Up @@ -846,14 +852,16 @@ const idclass_t dvr_autorec_entry_class = {
.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,
Expand Down

0 comments on commit 74794ab

Please sign in to comment.