/[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 15:15:33	172
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 15:33:25	173
@@ -353,40 +353,40 @@
                 {
                     gLog.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;
-                    if (xmltv_entry.Description != program.description)
+                    if (xmltv_entry.Title != program.name)
                     {
                         gLog.Warn.WriteLine("    Updating:");
-                        gLog.Warn.WriteLine("        Old Descption: {0}", program.description);
-                        gLog.Warn.WriteLine("        New Descption: {0}", xmltv_entry.Description);
-                        updated_program.description = xmltv_entry.Description;                        
+                        gLog.Warn.WriteLine("        Old Title: {0}", program.name);
+                        gLog.Warn.WriteLine("        New Title: {0}", xmltv_entry.Title);
+                        updated_program.name = xmltv_entry.Title;
                     }
-                    if (DateTime.Parse(xmltv_entry.Stop) != program.end_time)
+                    if (xmltv_entry.SubTitle != program.sub_title)
                     {
                         gLog.Warn.WriteLine("    Updating:");
-                        gLog.Warn.WriteLine("        Old EndTime: {0}", program.end_time.ToDateTimeString());
-                        gLog.Warn.WriteLine("        New EndTime: {0}", DateTime.Parse(xmltv_entry.Stop).ToDateTimeString());
-                        updated_program.end_time = DateTime.Parse(xmltv_entry.Stop);
+                        gLog.Warn.WriteLine("        Old SubTile: {0}", program.sub_title);
+                        gLog.Warn.WriteLine("        New SubTile: {0}", xmltv_entry.SubTitle);
+                        updated_program.sub_title = xmltv_entry.SubTitle;
                     }
-                    if (xmltv_entry.Title != program.name)
+                    if (xmltv_entry.Description != program.description)
                     {
                         gLog.Warn.WriteLine("    Updating:");
-                        gLog.Warn.WriteLine("        Old Title: {0}", program.name);
-                        gLog.Warn.WriteLine("        New Title: {0}", xmltv_entry.Title);
-                        updated_program.name = xmltv_entry.Title;
+                        gLog.Warn.WriteLine("        Old Descption: {0}", program.description);
+                        gLog.Warn.WriteLine("        New Descption: {0}", xmltv_entry.Description);
+                        updated_program.description = xmltv_entry.Description;                        
                     }
                     if (DateTime.Parse(xmltv_entry.Start) != program.start_time)
                     {
                         gLog.Warn.WriteLine("    Updating:");
                         gLog.Warn.WriteLine("        Old StartTime: {0}", program.start_time.ToDateTimeString());
                         gLog.Warn.WriteLine("        New StartTime: {0}", DateTime.Parse(xmltv_entry.Start).ToDateTimeString());
-                        updated_program.start_time = DateTime.Parse(xmltv_entry.Start);                    
+                        updated_program.start_time = DateTime.Parse(xmltv_entry.Start);
                     }
-                    if (xmltv_entry.SubTitle != program.sub_title)
+                    if (DateTime.Parse(xmltv_entry.Stop) != program.end_time)
                     {
                         gLog.Warn.WriteLine("    Updating:");
-                        gLog.Warn.WriteLine("        Old SubTile: {0}", program.sub_title);
-                        gLog.Warn.WriteLine("        New SubTile: {0}", xmltv_entry.SubTitle);
-                        updated_program.sub_title = xmltv_entry.SubTitle;
+                        gLog.Warn.WriteLine("        Old EndTime: {0}", program.end_time.ToDateTimeString());
+                        gLog.Warn.WriteLine("        New EndTime: {0}", DateTime.Parse(xmltv_entry.Stop).ToDateTimeString());
+                        updated_program.end_time = DateTime.Parse(xmltv_entry.Stop);
                     }
                     source_valid.Add(updated_program);
                 }

 

  ViewVC Help
Powered by ViewVC 1.1.22