config.iptv_tpool_count = 2;
config.date_mask = strdup("");
config.label_formatting = 0;
+ config.dvr_show_seconds = 1;
config.hdhomerun_ip = strdup("");
config.local_ip = strdup("");
config.local_port = 0;
.opts = PO_DOC_NLIST,
.group = 2
},
+ {
+ .type = PT_BOOL,
+ .id = "dvr_show_seconds",
+ .name = N_("Show DVR seconds"),
+ .desc = N_("Show seconds in the DVR entry add/edit dialogue window. "
+ "If disabled, existing seconds can not be edited and "
+ "new entries will have seconds set to zero."),
+ .opts = PO_ADVANCED,
+ .off = offsetof(config_t, dvr_show_seconds),
+ .group = 2,
+ },
{
.type = PT_BOOL,
.id = "label_formatting",
int iptv_tpool_count;
char *date_mask;
int label_formatting;
+ int dvr_show_seconds;
uint32_t ticket_expires;
char *hdhomerun_ip;
char *local_ip;
htsmsg_add_u32(m, "chname_src", config.chname_src);
htsmsg_add_str(m, "date_mask", config.date_mask);
htsmsg_add_u32(m, "label_formatting", config.label_formatting);
-
htsmsg_add_u32(m, "default_tab", default_tab);
-
+ htsmsg_add_u32(m, "dvr_show_seconds", config.dvr_show_seconds);
if (!access_noacl)
htsmsg_add_str(m, "username", username);
if (hc->hc_peer_ipstr)
value: value,
disabled: false,
width: 300,
- timeFormat: 'H:i:s',
+ timeFormat: tvheadend.dvr_show_seconds ? 'H:i:s' : 'H:i',
timeConfig: {
- altFormats: 'H:i:s',
+ altFormats: 'H:i:s|H:i',
allowBlank: true,
increment: 10
},
tvheadend.doc_history = [];
tvheadend.doc_win = null;
tvheadend.date_mask = '';
+tvheadend.dvr_show_seconds = true;
tvheadend.label_formatting = false;
tvheadend.language = window.navigator.userLanguage || window.navigator.language;
tvheadend.default_tab = CONFIG_DEFAULT_TAB_EPG;
tvheadend.chname_num = o.chname_num ? 1 : 0;
tvheadend.chname_src = o.chname_src ? 1 : 0;
tvheadend.date_mask = o.date_mask;
+ tvheadend.dvr_show_seconds = o.dvr_show_seconds ? true : false;
tvheadend.label_formatting = o.label_formatting ? true : false;
tvheadend.page_size = o.page_size;
tvheadend.default_tab = o.default_tab ? o.default_tab : CONFIG_DEFAULT_TAB_EPG;