tvhinfo(LS_DVR, "Creating new configuration '%s'", cfg->dvr_config_name);
if (cfg->dvr_profile == NULL) {
- cfg->dvr_profile = profile_find_by_name("dvr", NULL);
+ cfg->dvr_profile = profile_find_by_name("pass", NULL);
assert(cfg->dvr_profile);
LIST_INSERT_HEAD(&cfg->dvr_profile->pro_dvr_configs, cfg, profile_link);
}
cfg->dvr_removal_days = DVR_RET_REM_FOREVER;
if (cfg->dvr_retention_days > DVR_RET_REM_FOREVER)
cfg->dvr_retention_days = DVR_RET_REM_FOREVER;
+ if (cfg->dvr_profile && !strcmp(profile_get_name(cfg->dvr_profile), "htsp")) // htsp is for streaming only
+ cfg->dvr_profile = profile_find_by_name("pass", NULL);
}
profile_t *pro;
pro = v ? profile_find_by_uuid(v) : NULL;
- pro = pro ?: profile_find_by_name(v, "dvr");
+ pro = pro ?: profile_find_by_name(v, "pass");
if (pro == NULL) {
if (cfg->dvr_profile) {
LIST_REMOVE(cfg, profile_link);
.get = dvr_config_class_profile_get,
.rend = dvr_config_class_profile_rend,
.list = profile_class_get_list,
+ .opts = PO_ADVANCED,
.group = 1,
},
{
.off = offsetof(dvr_config_t, dvr_muxcnf.m_cache),
.def.i = MC_CACHE_DONTKEEP,
.list = dvr_config_class_cache_list,
- .opts = PO_ADVANCED | PO_DOC_NLIST,
+ .opts = PO_EXPERT | PO_DOC_NLIST,
.group = 1,
},
{
"those with tuners that take some time to tune "
"and/or send garbage data at the beginning. "),
.off = offsetof(dvr_config_t, dvr_warm_time),
- .opts = PO_ADVANCED,
+ .opts = PO_EXPERT,
.group = 1,
.def.u32 = 30
},
"in the channel or DVR entry will be used."),
.off = offsetof(dvr_config_t, dvr_extra_time_pre),
.list = dvr_config_class_extra_list,
- .opts = PO_ADVANCED | PO_DOC_NLIST,
+ .opts = PO_DOC_NLIST,
.group = 1,
},
{
"stop time."),
.off = offsetof(dvr_config_t, dvr_extra_time_post),
.list = dvr_config_class_extra_list,
- .opts = PO_ADVANCED | PO_DOC_NLIST,
+ .opts = PO_DOC_NLIST,
.group = 1,
},
{
.off = offsetof(dvr_config_t, dvr_charset),
.set = dvr_config_class_charset_set,
.list = dvr_config_class_charset_list,
- .opts = PO_ADVANCED,
+ .opts = PO_EXPERT,
.def.s = "UTF-8",
.group = 2,
},
"the event title. This applies to both the title "
"stored in the file and to the filename itself."),
.off = offsetof(dvr_config_t, dvr_channel_in_title),
- .opts = PO_EXPERT,
+ .opts = PO_ADVANCED,
.group = 5,
},
{
"the event title. This applies to both the title "
"stored in the file and to the filename itself."),
.off = offsetof(dvr_config_t, dvr_date_in_title),
- .opts = PO_EXPERT,
+ .opts = PO_ADVANCED,
.group = 5,
},
{
"the event title. This applies to both the title "
"stored in the file and to the filename itself."),
.off = offsetof(dvr_config_t, dvr_time_in_title),
- .opts = PO_EXPERT,
+ .opts = PO_ADVANCED,
.group = 5,
},
{
"(e.g. for an SMB/CIFS share) will be stripped out "
"or converted."),
.off = offsetof(dvr_config_t, dvr_windows_compatible_filenames),
- .opts = PO_EXPERT,
+ .opts = PO_ADVANCED,
.group = 6,
},
{}
while((cfg = LIST_FIRST(&pro->pro_dvr_configs)) != NULL) {
LIST_REMOVE(cfg, profile_link);
- cfg->dvr_profile = profile_find_by_name(NULL, "dvr");
+ cfg->dvr_profile = profile_find_by_name(NULL, "pass");
}
}