/[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 13:16:42	166
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 13:26:09	167
@@ -287,8 +287,8 @@
             DateTime last = new DateTime();
             first = list.OrderBy(s => s.start_time).ToList().First().start_time;            
             last = list.OrderBy(s => s.start_time).ToList().Last().start_time;
-            gLog.Info.WriteLine("\tFirst: {0} = ({1})", first.ToString("yyyy/MM/dd HH:mm:ss.fffffff"), first.ToDateTimeString());
-            gLog.Info.WriteLine("\tLast: {0} = ({1})", last.ToString("yyyy/MM/dd HH:mm:ss.fffffff"), last.ToDateTimeString());
+            gLog.Verbose.Debug.WriteLine("\tFirst: {0} = ({1})", first.ToString("yyyy/MM/dd HH:mm:ss.fffffff"), first.ToDateTimeString());
+            gLog.Verbose.Debug.WriteLine("\tLast: {0} = ({1})", last.ToString("yyyy/MM/dd HH:mm:ss.fffffff"), last.ToDateTimeString());
             var range = DateTimeRange.Create(first, last);
             return range;
         }
@@ -321,7 +321,7 @@
                 //    removed_programs.Add(program);
                 //}   
                 progress = 100.0 * (index / total);
-                gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("SQLLITE: Filtering GBPVR Programs: {1:00}%", progress)));
+                gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Filtering GBPVR Programs: {0:00}%", (int)progress)));
                 var xmltv_entry = program.AsXMLTVProgramDefinition(this);
                 if (xmltv_programs.Contains(xmltv_entry))
                 {
@@ -346,6 +346,12 @@
 
             source_valid = source_valid.OrderBy(s => s.channel_oid).ThenBy(s => s.start_time).ToList();
             source_invalid = source_invalid.OrderBy(s => s.channel_oid).ThenBy(s => s.start_time).ToList();
+
+            gLog.Info.WriteLine("Total XMLTV Programs: 0x{0:x8}", xmltv_programs.Count);
+            gLog.Info.WriteLine("Found: 0x{0:x8} valid GB-PVR Programs", source_valid.Count);
+            gLog.Info.WriteLine("Found: 0x{0:x8} invalid GB-PVR Programs", source_invalid.Count);
+            gLog.Info.WriteLine("Total GB-PVR Programs: 0x{0:x8}", source_valid.Count + source_invalid.Count);
+
             return source_valid;
         }
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22