/[xmltv_parser]/trunk/libxmltv/Core/XMLTVProgramCollection.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVProgramCollection.cs

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

--- trunk/libxmltv/Core/XMLTVProgramCollection.cs	2013/03/08 08:51:10	54
+++ trunk/libxmltv/Core/XMLTVProgramCollection.cs	2013/03/08 10:19:32	55
@@ -17,13 +17,13 @@
             using (XMLTVProgramCollection g = new XMLTVProgramCollection(xmltv))
             {
                 g.instance.Programs = g.Collection;
-                xmltv_logger.Log.Info.WriteLine(g.ToString());
+                xmltv_logger.Info.WriteLine(g.ToString());
             }
         }
         private XMLTVRuntimeInstance instance;
         protected XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)
         {
-            xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgramCollection");
+            xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgramCollection");
             //IXMLTV_PARSER _xmltv;
             //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }
             //XMLTV_PARSER = _xmltv;
@@ -58,23 +58,23 @@
             {
                 if (instance.IsAborting)
                 {
-                    xmltv_logger.Log.Verbose.Debug.WriteLine("Detected Instance abort event...");
+                    xmltv_logger.Verbose.Debug.WriteLine("Detected Instance abort event...");
                     break;
                 }
                 Program program = new Program();
 
                 program.Id = index;
-                xmltv_logger.Log.Verbose.Debug.WriteLine("program_Id: {0}", program.Id);
+                xmltv_logger.Verbose.Debug.WriteLine("program_Id: {0}", program.Id);
                 if (c.HasAttributes)
                 {
                     var start = c.Attribute(XMLTVConstants.Programs.ProgramStart).Value;
                     program.Start = ParseDate(start);
-                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_start: {0}", start);
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_start: {0}", start);
                     var stop = c.Attribute(XMLTVConstants.Programs.ProgramStop).Value;
                     program.Stop = ParseDate(stop);
-                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop);
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop);
                     var channelid = c.Attribute(XMLTVConstants.Programs.ProgramChannelId).Value;
-                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_channelid: {0}", channelid);
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_channelid: {0}", channelid);
                     IXMLTVChannel channel = new Channel();
                     try
                     {
@@ -82,10 +82,10 @@
                     }
                     catch (KeyNotFoundException)
                     {
-                        xmltv_logger.Log.Verbose.Error.WriteLine(string.Format("Unable to find Channel by id: '{0}' for this program.", channelid));
+                        xmltv_logger.Verbose.Error.WriteLine(string.Format("Unable to find Channel by id: '{0}' for this program.", channelid));
                     }
                     program.Channel = channel;
-                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_channel: {0}", program.Channel.ToString());
+                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_channel: {0}", program.Channel.ToString());
                 }
                 try
                 {
@@ -93,21 +93,21 @@
                     program.Title = title;                    
                 }
                 catch (Exception) { program.Title = string.Empty; }
-                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_title: {0}", program.Title == string.Empty ? "empty" : program.Title);
+                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_title: {0}", program.Title == string.Empty ? "empty" : program.Title);
                 try
                 {
                     var subtitle = c.Descendants(XMLTVConstants.Programs.ProgramSubTitle).FirstOrDefault().Value;
                     program.SubTitle = subtitle;                    
                 }
                 catch (Exception) { program.SubTitle = string.Empty; }
-                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", program.SubTitle == string.Empty ? "empty" : program.SubTitle);
+                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", program.SubTitle == string.Empty ? "empty" : program.SubTitle);
                 try
                 {
                     var description = c.Descendants(XMLTVConstants.Programs.ProgramDescription).FirstOrDefault().Value;
                     program.Description = description;                    
                 }
                 catch (Exception) { program.Description = string.Empty; }
-                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_description: {0}", program.Description == string.Empty ? "empty" : program.Description);
+                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_description: {0}", program.Description == string.Empty ? "empty" : program.Description);
 
                 entries.Add(program.Id, program);
                 Application.DoEvents();

 

  ViewVC Help
Powered by ViewVC 1.1.22