From: Kai Sommerfeld Date: Sun, 28 Sep 2014 08:11:20 +0000 (+0200) Subject: [webui] - Use same selection list for extraStart and extraStop selection X-Git-Tag: v4.1~1274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74794abac978fa6d24dc6071ac101a8da323a57f;p=thirdparty%2Ftvheadend.git [webui] - Use same selection list for extraStart and extraStop selection in autorec entry editor like in recordings editor. --- diff --git a/src/dvr/dvr_autorec.c b/src/dvr/dvr_autorec.c index d57b6a169..817568d19 100644 --- a/src/dvr/dvr_autorec.c +++ b/src/dvr/dvr_autorec.c @@ -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) { @@ -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,