/// <summary> /// Acquire and process EIT data. /// </summary> /// <param name="dataProvider">A sample data provider.</param> /// <param name="worker">The background worker that is running this collection.</param> /// <returns>A CollectorReply code.</returns> public override CollectorReply Process(ISampleDataProvider dataProvider, BackgroundWorker worker) { EITProgramContent.Load(); CustomProgramCategory.Load(); MultiTreeDictionaryEntry.Load(Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary FreeSat T1.cfg"), Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary FreeSat T2.cfg")); /*GetStationData(dataProvider, worker, new int[] { 0xbba, 0xc1e, 0xf01 });*/ GetStationData(dataProvider, worker, new int[] { 0xbba }); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } if (RunParameters.Instance.ChannelBouquet != -1 || RunParameters.Instance.Options.Contains("USECHANNELID") || RunParameters.Instance.Options.Contains("USELCN") || RunParameters.Instance.Options.Contains("CREATEBRCHANNELS") || RunParameters.Instance.Options.Contains("CREATEARCHANNELS")) { /*GetBouquetSections(dataProvider, worker, new int[] { 0xbba, oxc1e, oxf01 } );*/ GetBouquetSections(dataProvider, worker, new int[] { 0xbba }); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } } getFreeSatSections(dataProvider, worker); return(CollectorReply.OK); }
/// <summary> /// Acquire and process EIT data. /// </summary> /// <param name="dataProvider">A sample data provider.</param> /// <param name="worker">The background worker that is running this collection.</param> /// <returns>A CollectorReply code.</returns> public override CollectorReply Process(ISampleDataProvider dataProvider, BackgroundWorker worker) { EITProgramContent.Load(); CustomProgramCategory.Load(); ParentalRating.Load(); if (RunParameters.Instance.Options.Contains("USEFREESATTABLES")) { MultiTreeDictionaryEntry.Load(Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary FreeSat T1.cfg"), Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary FreeSat T2.cfg")); } GetStationData(dataProvider, worker); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } bool bouquetNeeded = checkBouquetNeeded(); if (RunParameters.Instance.ChannelBouquet != -1 || RunParameters.Instance.Options.Contains("USECHANNELID") || RunParameters.Instance.Options.Contains("USELCN") || RunParameters.Instance.Options.Contains("CREATEBRCHANNELS") || RunParameters.Instance.Options.Contains("CREATEARCHANNELS")) { GetBouquetSections(dataProvider, worker); string bouquetType; if (eitChannels > 0) { bouquetType = "Freeview"; } else { bouquetType = "OpenTV"; } Logger.Instance.Write("Used " + bouquetType + " channel descriptors"); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } } getEITSections(dataProvider, worker); return(CollectorReply.OK); }
/// <summary> /// Acquire and process ATSC PSIP Info data. /// </summary> /// <param name="dataProvider">A sample data provider.</param> /// <param name="worker">The background worker that is running this collection.</param> /// <returns>A CollectorReply code.</returns> public override CollectorReply Process(ISampleDataProvider dataProvider, BackgroundWorker worker) { AtscPsipProgramCategory.Load(); CustomProgramCategory.Load(); bool referenceTablesLoaded = MultiTreeDictionaryEntry.Load(Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary ATSC PSIP T1.cfg"), Path.Combine(RunParameters.ConfigDirectory, "Huffman Dictionary ATSC PSIP T2.cfg")); if (!referenceTablesLoaded) { return(CollectorReply.ReferenceDataError); } getMasterGuideData(dataProvider, worker); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } getVirtualChannelData(dataProvider, worker); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } /*getRatingRegionData(dataProvider, worker); * if (worker.CancellationPending) * return (CollectorReply.Cancelled);*/ getExtendedTextData(dataProvider, worker); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } getEventInformationData(dataProvider, worker); if (worker.CancellationPending) { return(CollectorReply.Cancelled); } OutputFile.UseUnicodeEncoding = MultipleString.UseUnicodeEncoding; return(CollectorReply.OK); }