/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/Program.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 161 by william, Thu Mar 14 20:37:11 2013 UTC revision 162 by william, Thu Mar 14 21:40:19 2013 UTC
# Line 174  namespace GBPVRProgramDatabaseFixer Line 174  namespace GBPVRProgramDatabaseFixer
174          static List<SQLLITE.IPROGRAMME> gbpvr_programs;          static List<SQLLITE.IPROGRAMME> gbpvr_programs;
175          static List<SQLLITE.ICHANNEL> gbpvr_channels;          static List<SQLLITE.ICHANNEL> gbpvr_channels;
176          static List<SQLLITE.IRECORDING_SCHEDULE> gbpvr_recordings;          static List<SQLLITE.IRECORDING_SCHEDULE> gbpvr_recordings;
177          static IProgramDefinitionList xmltv_programs;          static List<libxmltv.Interfaces.IProgramDefinition> xmltv_programs;
178          static void PerformDatabaseProcessing()          static void PerformDatabaseProcessing()
179          {          {
180              gbpvr_channels = sqlite.Channels;              gbpvr_channels = sqlite.Channels;
181              gbpvr_programs = sqlite.Programs;              gbpvr_programs = sqlite.Programs;
182              gbpvr_recordings = sqlite.Recordings;                          gbpvr_recordings = sqlite.Recordings;            
183              Type datatype;              Type datatype;
184              xmltv_programs = (IProgramDefinitionList)XMLTV.CreateBindingSourceFromData(XMLTV.GetPrograms(), out datatype);              var xmlt_raw_program_data = (IProgramDefinitionList)XMLTV.CreateBindingSourceFromData(XMLTV.GetPrograms(), out datatype);
185                xmltv_programs = xmlt_raw_program_data.ToList().OrderBy(p => p.ChannelNumber).ThenBy(p => DateTime.Parse(p.Start)).ToList();
186    
187    
188                xmltv_programs = xmltv_programs.FindAll(p => p.Title == "Law & Order: Criminal Intent").ToList();
189    
190    
191    
192                //var data = xmltv_programs[0];
193                //DateTime p = DateTime.Parse(data.Start);
194                //string strP = p.ToString("yyyy/MM/dd HH:mm:ss.fffffff");
195                
196              CheckScheduledRecordingsForDiscrepancies();              CheckScheduledRecordingsForDiscrepancies();
197              CheckProgramsForDiscrepancies();              CheckProgramsForDiscrepancies();
198          }          }

Legend:
Removed from v.161  
changed lines
  Added in v.162

  ViewVC Help
Powered by ViewVC 1.1.22