Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Working with new multi-to-multi mapping of channels and
epg entries
  • Loading branch information
andyb2000 committed Sep 21, 2012
1 parent 354617d commit 861b59c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/epggrab/module/xmltv.c
Expand Up @@ -645,15 +645,16 @@ static int xmltv_channelupdate
channel_service_id = dvb_transport_find3(NULL, NULL, NULL, 0, 0, cid, 1, 0);
if (channel_service_id && channel_service_id->s_ch) {
ec =_xmltv_find_epggrab_channel(mod, cid, 1, &save);
/* Check for primary, update channel number if primary,
or just update icon regardless */
/* ec->channel = channel_service_id->s_ch;*/
LIST_FOREACH(ecl, &ec->channels, link) {
if (ecl->channel == channel_service_id->s_ch) {
ec->id = channel_service_id->s_ch;
};
};
ecl = LIST_FIRST(&ec->channels);
if(!ecl) {
ecl = calloc(1, sizeof(epggrab_channel_link_t));
LIST_INSERT_HEAD(&ec->channels, ecl, link);
};
ecl->channel = channel_service_id->s_ch;
changed_entry = 0;
/* Check for primary, update channel number if primary,
or just update icon regardless */
if (service_is_primary_epg(channel_service_id)) {
if (epggrab_channel_renumber) {
#ifdef EPG_TRACE
Expand Down

1 comment on commit 861b59c

@andyb2000
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need some input here, cannot get the logic around the new multi-to-multi channel mappings, have tried to use a trick used in opentv for it (the ecl part) but this doesn't appear to leave my mappings correct as I need ec set to the correct pointer to update the channel name, icon, etc later

Please sign in to comment.