diff --git a/src/channels.c b/src/channels.c index 1eb5b1c..30ec834 100644 --- a/src/channels.c +++ b/src/channels.c @@ -702,15 +702,22 @@ channel_get_number ( channel_t *ch ) } else { LIST_FOREACH(ilm, &ch->ch_services, ilm_in2_link) { if (ch->ch_bouquet && - (n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1))) + (n = bouquet_get_channel_number(ch->ch_bouquet, (service_t *)ilm->ilm_in1))) { + tvhinfo(LS_CHANNEL, "lcn from bouquet! svc '%s'", ((service_t *)ilm->ilm_in1)->s_nicename); break; - if ((n = service_get_channel_number((service_t *)ilm->ilm_in1))) + } + if ((n = service_get_channel_number((service_t *)ilm->ilm_in1))) { + tvhinfo(LS_CHANNEL, "lcn from service! svc '%s'", ((service_t *)ilm->ilm_in1)->s_nicename); break; + } } } if (n) { - if (ch->ch_bouquet) + if (ch->ch_bouquet) { n += (int64_t)ch->ch_bouquet->bq_lcn_offset * CHANNEL_SPLIT; + if (n && ch->ch_bouquet->bq_lcn_offset) + tvhinfo(LS_CHANNEL, "added offset %d", ch->ch_bouquet->bq_lcn_offset); + } return n; } return 0;