htsmsg_add_bool(m, "noui", 1);
if (opts & PO_HIDDEN)
htsmsg_add_bool(m, "hidden", 1);
+ if (opts & PO_PHIDDEN)
+ htsmsg_add_bool(m, "phidden", 1);
if (opts & PO_PASSWORD)
htsmsg_add_bool(m, "password", 1);
if (opts & PO_DURATION)
#define PO_ADVANCED (1<<4) // Property is advanced
#define PO_EXPERT (1<<5) // Property is for experts
#define PO_NOUI (1<<6) // Property should not be presented in the user interface
-#define PO_HIDDEN (1<<7) // Property is hidden (by default)
-#define PO_USERAW (1<<8) // Only save the RAW (off) value if it exists
-#define PO_SORTKEY (1<<9) // Sort using key (not display value)
-#define PO_PASSWORD (1<<10) // String is a password
-#define PO_DURATION (1<<11) // For PT_TIME - differentiate between duration and datetime
-#define PO_HEXA (1<<12) // Hexadecimal value
-#define PO_DATE (1<<13) // Show date only
-#define PO_LOCALE (1<<14) // Call tvh_locale_lang on string
-#define PO_LORDER (1<<15) // Manage order in lists
-#define PO_MULTILINE (1<<16) // Multiline string
-#define PO_PERSIST (1<<17) // Persistent value (return back on save)
-#define PO_DOC (1<<18) // Use doc callback instead description if exists
-#define PO_DOC_NLIST (1<<19) // Do not show list in doc
-#define PO_TRIM (1<<20) // Trim whitespaces (left & right) on load
+#define PO_HIDDEN (1<<7) // Property column is hidden (by default)
+#define PO_PHIDDEN (1<<8) // Property is permanently hidden
+#define PO_USERAW (1<<9) // Only save the RAW (off) value if it exists
+#define PO_SORTKEY (1<<10) // Sort using key (not display value)
+#define PO_PASSWORD (1<<11) // String is a password
+#define PO_DURATION (1<<12) // For PT_TIME - differentiate between duration and datetime
+#define PO_HEXA (1<<13) // Hexadecimal value
+#define PO_DATE (1<<14) // Show date only
+#define PO_LOCALE (1<<15) // Call tvh_locale_lang on string
+#define PO_LORDER (1<<16) // Manage order in lists
+#define PO_MULTILINE (1<<17) // Multiline string
+#define PO_PERSIST (1<<18) // Persistent value (return back on save)
+#define PO_DOC (1<<19) // Use doc callback instead description if exists
+#define PO_DOC_NLIST (1<<20) // Do not show list in doc
+#define PO_TRIM (1<<21) // Trim whitespaces (left & right) on load
/*
* min/max/step helpers
.name = N_("Enable SBR for ELD"),
.desc = N_("Enable SBR for ELD."),
.group = 5,
- .opts = PO_EXPERT | PO_HIDDEN,
+ .opts = PO_EXPERT | PO_PHIDDEN,
.get_opts = codec_profile_class_profile_get_opts,
.off = offsetof(tvh_codec_profile_libfdk_aac_t, eld_sbr),
.def.i = 0,
.name = N_("Signaling"),
.desc = N_("SBR/PS signaling style."),
.group = 5,
- .opts = PO_EXPERT | PO_HIDDEN,
+ .opts = PO_EXPERT | PO_PHIDDEN,
.get_opts = codec_profile_class_profile_get_opts,
.off = offsetof(tvh_codec_profile_libfdk_aac_t, signaling),
.list = codec_profile_libfdk_aac_class_signaling_list,
.name = N_("Sample format"),
.desc = N_("Audio sample format."),
.group = 4,
- .opts = PO_ADVANCED | PO_HIDDEN,
+ .opts = PO_ADVANCED | PO_PHIDDEN,
.get_opts = codec_profile_audio_class_sample_fmt_get_opts,
.off = offsetof(TVHAudioCodecProfile, sample_fmt),
.list = codec_profile_audio_class_sample_fmt_list,
.name = N_("Sample rate"),
.desc = N_("Samples per second."),
.group = 4,
- .opts = PO_ADVANCED | PO_HIDDEN,
+ .opts = PO_ADVANCED | PO_PHIDDEN,
.get_opts = codec_profile_audio_class_sample_rate_get_opts,
.off = offsetof(TVHAudioCodecProfile, sample_rate),
.list = codec_profile_audio_class_sample_rate_list,
.name = N_("Channel layout"),
.desc = N_("Audio channel layout."),
.group = 4,
- .opts = PO_ADVANCED | PO_HIDDEN,
+ .opts = PO_ADVANCED | PO_PHIDDEN,
.get_opts = codec_profile_audio_class_channel_layout_get_opts,
.off = offsetof(TVHAudioCodecProfile, channel_layout),
.list = codec_profile_audio_class_channel_layout_list,
opts |= PO_RDONLY;
}
else if (visible) {
- opts &= ~(PO_HIDDEN);
+ opts &= ~(PO_PHIDDEN);
}
return opts;
}
.name = N_("Profile"),
.desc = N_("Profile."),
.group = 4,
- .opts = PO_ADVANCED | PO_HIDDEN,
+ .opts = PO_ADVANCED | PO_PHIDDEN,
.get_opts = codec_profile_class_profile_get_opts,
.off = offsetof(TVHCodecProfile, profile),
.list = codec_profile_class_profile_list,
.name = N_("Pixel format"),
.desc = N_("Video pixel format."),
.group = 4,
- .opts = PO_ADVANCED | PO_HIDDEN,
+ .opts = PO_ADVANCED | PO_PHIDDEN,
.get_opts = codec_profile_video_class_pix_fmt_get_opts,
.off = offsetof(TVHVideoCodecProfile, pix_fmt),
.list = codec_profile_video_class_pix_fmt_list,
this.wronly = conf.wronly;
this.wronce = conf.wronce;
this.noui = conf.noui;
- this.hidden = conf.hidden;
+ this.hidden = conf.hidden || conf.phidden;
+ this.phidden = conf.phidden;
this.uilevel = conf.expert ? 'expert' : (conf.advanced ? 'advanced' : 'basic');
this.password = conf.showpwd ? false : conf.password;
this.duration = conf.duration;
]
});
}
- if (p.hidden) {
+ if (p.phidden) {
hiddenFields.push(f);
} else if (p.group && meta && meta.groups) {
f.tvh_uilevel = p.expert ? 'expert' : (p.advanced ? 'advanced' : 'basic');