.ic_caption = N_("IPTV Network"),
.ic_delete = iptv_network_class_delete,
.ic_properties = (const property_t[]){
+ {
+ .type = PT_BOOL,
+ .id = "scan_create",
+ .name = N_("Scan After Create"),
+ .off = offsetof(iptv_network_t, in_scan_create),
+ .def.i = 1,
+ .opts = PO_ADVANCED
+ },
+ {
+ .type = PT_U16,
+ .id = "service_sid",
+ .name = N_("Service ID"),
+ .off = offsetof(iptv_network_t, in_service_id),
+ .def.i = 0,
+ .opts = PO_ADVANCED
+ },
{
.type = PT_INT,
.id = "priority",
htsmsg_t *c;
/* Init Network */
- in->in_priority = 1;
+ in->in_scan_create = 1;
+ in->in_priority = 1;
in->in_streaming_priority = 1;
if (idc == &iptv_auto_network_class)
in->in_remove_args = strdup("ticket");
htsmsg_t *conf;
mpegts_mux_t *mm;
iptv_mux_t *im;
+ iptv_service_t *ms;
url_t u;
int change;
http_arg_list_t args;
conf = htsmsg_create_map();
htsmsg_add_str(conf, "iptv_url", url);
+ if (n)
+ htsmsg_add_str(conf, "iptv_muxname", n);
if (name)
htsmsg_add_str(conf, "iptv_sname", name);
+ if (!in->in_scan_create)
+ htsmsg_add_s32(conf, "scan_result", MM_SCAN_OK);
im = iptv_mux_create0(in, NULL, conf);
htsmsg_destroy(conf);
(*count)++;
}
+ if (in->in_service_id) {
+ conf = htsmsg_create_map();
+ htsmsg_add_u32(conf, "sid", in->in_service_id);
+ htsmsg_add_u32(conf, "dvb_servicetype", 1); /* SDTV */
+ ms = iptv_service_create0(im, 0, 0, NULL, conf);
+ htsmsg_destroy(conf);
+ if (ms)
+ iptv_bouquet_trigger(in, 0);
+ }
+
end:
free(x);
urlreset(&u);