]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[webui] - Use same selection list for extraStart and extraStop selection
authorKai Sommerfeld <kai.sommerfeld@gmx.com>
Sun, 28 Sep 2014 08:11:20 +0000 (10:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Sep 2014 10:35:47 +0000 (12:35 +0200)
in autorec entry editor like in recordings editor.

src/dvr/dvr_autorec.c

index d57b6a1698cf4a7ce951da1e142a7cfd460be8a7..817568d192e2cae7d0896313bcc5a00f9776e896 100644 (file)
@@ -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,