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

Diff of /trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs

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

--- trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 16:53:44	178
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 17:13:23	179
@@ -353,62 +353,57 @@
 
                 if (xmltv_entry == null)
                 {
-                    gLog.Verbose.Warn.WriteLine("Invalidating GB-PVR Program: oid='{0}' channel_oid='{1}' title='{2}' start='{3}'", program.oid, program.channel_oid, program.name, program.start_time.ToDateTimeString());
+                    //gLog.Verbose.Warn.WriteLine("Invalidating GB-PVR Program: oid='{0}' channel_oid='{1}' title='{2}' start='{3}'", program.oid, program.channel_oid, program.name, program.start_time.ToDateTimeString());
                     source_invalid.Add(program);                   
                 }
                 else
                 {
-                    gLog.Verbose.Warn.WriteLine("Updating GB-PVR Program (if needed): oid='{0}' channel_oid='{1}' title='{2}' subtitle='{3}' start='{4}'", program.oid, program.channel_oid, program.name, program.sub_title, program.start_time.ToDateTimeString());
+                    //gLog.Verbose.Warn.WriteLine("Updating GB-PVR Program (if needed): oid='{0}' channel_oid='{1}' title='{2}' subtitle='{3}' start='{4}'", program.oid, program.channel_oid, program.name, program.sub_title, program.start_time.ToDateTimeString());
                     var updated_program = program;
                     bool needsupdate = false;
                     if (xmltv_entry.Title != program.name)
                     {
-                        gLog.Verbose.Warn.WriteLine("    Updating:");
-                        gLog.Verbose.Warn.WriteLine("        Old Title: {0}", program.name);
-                        gLog.Verbose.Warn.WriteLine("        New Title: {0}", xmltv_entry.Title);
+                        //gLog.Verbose.Warn.WriteLine("    Updating:");
+                        //gLog.Verbose.Warn.WriteLine("        Old Title: {0}", program.name);
+                        //gLog.Verbose.Warn.WriteLine("        New Title: {0}", xmltv_entry.Title);
                         updated_program.name = xmltv_entry.Title;
                         needsupdate = true;
                     }
                     if (xmltv_entry.SubTitle != program.sub_title)
                     {
-                        gLog.Verbose.Warn.WriteLine("    Updating:");
-                        gLog.Verbose.Warn.WriteLine("        Old SubTile: {0}", program.sub_title);
-                        gLog.Verbose.Warn.WriteLine("        New SubTile: {0}", xmltv_entry.SubTitle);
+                        //gLog.Verbose.Warn.WriteLine("    Updating:");
+                        //gLog.Verbose.Warn.WriteLine("        Old SubTile: {0}", program.sub_title);
+                        //gLog.Verbose.Warn.WriteLine("        New SubTile: {0}", xmltv_entry.SubTitle);
                         updated_program.sub_title = xmltv_entry.SubTitle;
                         needsupdate = true;
                     }
                     if (xmltv_entry.Description != program.description)
                     {
-                        gLog.Verbose.Warn.WriteLine("    Updating:");
-                        gLog.Verbose.Warn.WriteLine("        Old Descption: {0}", program.description);
-                        gLog.Verbose.Warn.WriteLine("        New Descption: {0}", xmltv_entry.Description);
+                        //gLog.Verbose.Warn.WriteLine("    Updating:");
+                        //gLog.Verbose.Warn.WriteLine("        Old Descption: {0}", program.description);
+                        //gLog.Verbose.Warn.WriteLine("        New Descption: {0}", xmltv_entry.Description);
                         updated_program.description = xmltv_entry.Description;
                         needsupdate = true;
                     }
                     if (DateTime.Parse(xmltv_entry.Start) != program.start_time)
                     {
-                        gLog.Verbose.Warn.WriteLine("    Updating:");
-                        gLog.Verbose.Warn.WriteLine("        Old StartTime: {0}", program.start_time.ToDateTimeString());
-                        gLog.Verbose.Warn.WriteLine("        New StartTime: {0}", DateTime.Parse(xmltv_entry.Start).ToDateTimeString());
+                        //gLog.Verbose.Warn.WriteLine("    Updating:");
+                        //gLog.Verbose.Warn.WriteLine("        Old StartTime: {0}", program.start_time.ToDateTimeString());
+                        //gLog.Verbose.Warn.WriteLine("        New StartTime: {0}", DateTime.Parse(xmltv_entry.Start).ToDateTimeString());
                         updated_program.start_time = DateTime.Parse(xmltv_entry.Start);
                         needsupdate = true;
                     }
                     if (DateTime.Parse(xmltv_entry.Stop) != program.end_time)
                     {
-                        gLog.Verbose.Warn.WriteLine("    Updating:");
-                        gLog.Verbose.Warn.WriteLine("        Old EndTime: {0}", program.end_time.ToDateTimeString());
-                        gLog.Verbose.Warn.WriteLine("        New EndTime: {0}", DateTime.Parse(xmltv_entry.Stop).ToDateTimeString());
+                        //gLog.Verbose.Warn.WriteLine("    Updating:");
+                        //gLog.Verbose.Warn.WriteLine("        Old EndTime: {0}", program.end_time.ToDateTimeString());
+                        //gLog.Verbose.Warn.WriteLine("        New EndTime: {0}", DateTime.Parse(xmltv_entry.Stop).ToDateTimeString());
                         updated_program.end_time = DateTime.Parse(xmltv_entry.Stop);
                         needsupdate = true;
                     }
                     
                     if (needsupdate)
                     {
-                        //// update database entry
-                        //if (!UpdateProgramDatabaseEntry(program, updated_program))
-                        //{
-                        //    gLog.Error.WriteLine("Failed to update entry with oid: '{0}'", program.oid);
-                        //}
                         OldNewProgram p = new OldNewProgram();
                         p.OldProgram = program;
                         p.NewProgram = updated_program;

 

  ViewVC Help
Powered by ViewVC 1.1.22