return iptv_url_set(&mn->in_icon_url, &mn->in_icon_url_sane, v, 1, 0);
}
+PROP_DOC(priority)
+PROP_DOC(streaming_priority)
+
extern const idclass_t mpegts_network_class;
const idclass_t iptv_network_class = {
.ic_super = &mpegts_network_class,
.type = PT_BOOL,
.id = "scan_create",
.name = N_("Scan after creation"),
+ .desc = N_("After creating the network scan it for services."),
.off = offsetof(iptv_network_t, in_scan_create),
.def.i = 1,
.opts = PO_ADVANCED
.type = PT_U16,
.id = "service_sid",
.name = N_("Service ID"),
+ .desc = N_("The network's service ID"),
.off = offsetof(iptv_network_t, in_service_id),
.def.i = 0,
.opts = PO_EXPERT
.type = PT_INT,
.id = "priority",
.name = N_("Priority"),
+ .desc = N_("The network's priority. The network with the "
+ "highest priority value will be used out of "
+ "preference if available. See Help for details."),
.off = offsetof(iptv_network_t, in_priority),
+ .doc = prop_doc_priority,
.def.i = 1,
.opts = PO_ADVANCED
},
.type = PT_INT,
.id = "spriority",
.name = N_("Streaming priority"),
+ .desc = N_("When streaming a service (via http or htsp) "
+ "Tvheadend will use the network with the highest "
+ "streaming priority set here. See Help for details."),
+ .doc = prop_doc_streaming_priority,
.off = offsetof(iptv_network_t, in_streaming_priority),
.def.i = 1,
.opts = PO_ADVANCED
.type = PT_U32,
.id = "max_streams",
.name = N_("Maximum # input streams"),
+ .desc = N_("The maximum number of input streams allowed "
+ "on this network."),
.off = offsetof(iptv_network_t, in_max_streams),
.def.i = 0,
},
.type = PT_U32,
.id = "max_bandwidth",
.name = N_("Maximum bandwidth (Kbps)"),
+ .desc = N_("Maximum input bandwidth."),
.off = offsetof(iptv_network_t, in_max_bandwidth),
.def.i = 0,
},
.type = PT_U32,
.id = "max_timeout",
.name = N_("Maximum timeout (seconds)"),
+ .desc = N_("Maximum time to wait (in seconds) for a stream "
+ "before a timeout."),
.off = offsetof(iptv_network_t, in_max_timeout),
.def.i = 15,
.opts = PO_ADVANCED
.type = PT_STR,
.id = "icon_url",
.name = N_("Icon base URL"),
+ .desc = N_("Icon base URL."),
.off = offsetof(iptv_network_t, in_icon_url),
.set = iptv_network_class_icon_url_set,
.opts = PO_MULTILINE | PO_ADVANCED
.type = PT_STR,
.id = "url",
.name = N_("URL"),
+ .desc = N_("The URL to the playlist."),
.off = offsetof(iptv_network_t, in_url),
.set = iptv_auto_network_class_url_set,
.notify = iptv_auto_network_class_notify_url,
.type = PT_BOOL,
.id = "bouquet",
.name = N_("Create bouquet"),
+ .desc = N_("Create a bouquet from the playlist."),
.off = offsetof(iptv_network_t, in_bouquet),
.notify = iptv_auto_network_class_notify_bouquet,
},
.type = PT_STR,
.id = "ctx_charset",
.name = N_("Content character set"),
+ .desc = N_("The playlist's character set."),
.off = offsetof(iptv_network_t, in_ctx_charset),
.list = iptv_auto_network_class_charset_list,
.notify = iptv_auto_network_class_notify_url,
.intextra = CHANNEL_SPLIT,
.id = "channel_number",
.name = N_("Channel numbers from"),
+ .desc = N_("Lowest starting channel number."),
.off = offsetof(iptv_network_t, in_channel_number),
},
{
.type = PT_U32,
.id = "refetch_period",
.name = N_("Re-fetch period (mins)"),
+ .desc = N_("Time (in minutes) to re-fetch the playlist."),
.off = offsetof(iptv_network_t, in_refetch_period),
.def.i = 60,
.opts = PO_ADVANCED
.type = PT_BOOL,
.id = "ssl_peer_verify",
.name = N_("SSL verify peer"),
+ .desc = N_("Verify the peer's SSL."),
.off = offsetof(iptv_network_t, in_ssl_peer_verify),
.opts = PO_EXPERT
},
.type = PT_STR,
.id = "remove_args",
.name = N_("Remove HTTP arguments"),
+ .desc = N_("Key and value pairs to remove from the query "
+ "string in the URL."),
.off = offsetof(iptv_network_t, in_remove_args),
.def.s = "ticket",
.opts = PO_EXPERT
return m;
}
+PROP_DOC(priority)
+PROP_DOC(streaming_priority)
+
const idclass_t mpegts_input_class =
{
.ic_super = &tvh_input_class,
.id = "priority",
.name = N_("Priority"),
.desc = N_("The tuner priority value (a higher value means to "
- "use this tuner out of preference)."),
+ "use this tuner out of preference). See Help for details."),
+ .doc = prop_doc_priority,
.off = offsetof(mpegts_input_t, mi_priority),
.def.i = 1,
.opts = PO_ADVANCED
.desc = N_("The tuner priority value for streamed channels "
"through HTTP or HTSP (a higher value means to use "
"this tuner out of preference). If not set (zero), "
- "the standard priority value is used."),
+ "the standard priority value is used. See Help for details."),
+ .doc = prop_doc_streaming_priority,
.off = offsetof(mpegts_input_t, mi_streaming_priority),
.def.i = 1,
.opts = PO_ADVANCED