コード例 #1
0
        /// <summary>
        /// Create the EPG entries.
        /// </summary>
        public override void FinishFrequency()
        {
            if (RunParameters.Instance.ChannelBouquet != -1)
            {
                foreach (TVStation tvStation in TVStation.StationCollection)
                {
                    bool process = checkChannelMapping(tvStation);
                    if (!process)
                    {
                        tvStation.EPGCollection.Clear();
                    }
                }
            }
            else
            {
                foreach (Bouquet bouquet in Bouquet.Bouquets)
                {
                    foreach (Region region in bouquet.Regions)
                    {
                        foreach (Channel channel in region.Channels)
                        {
                            TVStation station = TVStation.FindStation(channel.OriginalNetworkID, channel.TransportStreamID, channel.ServiceID);
                            if (station != null && station.LogicalChannelNumber == -1)
                            {
                                station.LogicalChannelNumber = channel.UserChannel;
                            }
                        }
                    }
                }
            }

            EITProgramContent.LogContentUsage();
            LanguageCode.LogUsage();
            logChannelInfo();
        }
コード例 #2
0
        /// <summary>
        /// Create the EPG entries.
        /// </summary>
        public override void FinishFrequency()
        {
            foreach (TVStation station in TVStation.StationCollection)
            {
                if (station.Name != null)
                {
                    station.ChannelID = station.OriginalNetworkID + ":" +
                                        station.TransportStreamID + ":" +
                                        station.ServiceID + ":" +
                                        station.Name;
                }
                else
                {
                    station.ChannelID = station.OriginalNetworkID + ":" +
                                        station.TransportStreamID + ":" +
                                        station.ServiceID;
                }
            }

            BellTVProgramCategory.LogCategoryUsage();
            LanguageCode.LogUsage();
        }