diff --git a/avgen.c b/avgen.c index 9400587d..f13e6ed8 100644 --- a/avgen.c +++ b/avgen.c @@ -116,6 +116,8 @@ avgen_init(void) t->tht_provider = strdup("HTS Tvheadend"); t->tht_network = strdup("Internal"); + t->tht_uniquename = strdup("TEST1"); + transport_link(t, ch); } diff --git a/iptv_input.c b/iptv_input.c index 809b5424..c082c2e6 100644 --- a/iptv_input.c +++ b/iptv_input.c @@ -241,6 +241,10 @@ iptv_configure_transport(th_transport_t *t, const char *iptv_type, else t->tht_network = strdup(inet_ntoa(t->tht_iptv_group_addr)); + snprintf(buf, sizeof(buf), "IPTV:%s:%d", + inet_ntoa(t->tht_iptv_group_addr), t->tht_iptv_port); + t->tht_uniquename = strdup(buf); + t->tht_channel = channel_find(channel_name, 1, NULL); LIST_INSERT_HEAD(&iptv_probing_transports, t, tht_adapter_link); startupcounter++; diff --git a/v4l.c b/v4l.c index 1bb852ea..730e9f88 100644 --- a/v4l.c +++ b/v4l.c @@ -98,6 +98,8 @@ v4l_configure_transport(th_transport_t *t, const char *muxname, t->tht_network = strdup("Analog TV"); t->tht_provider = strdup("Analog TV"); + snprintf(buf, sizeof(buf), "ANALOG:%u", t->tht_v4l_frequency); + t->tht_uniquename = strdup(buf); transport_link(t, channel_find(channel_name, 1, NULL)); return 0;