ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVProgramCollection.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVProgramCollection.cs (file contents):
Revision 54 by william, Fri Mar 8 08:51:10 2013 UTC vs.
Revision 55 by william, Fri Mar 8 10:19:32 2013 UTC

# Line 17 | Line 17 | namespace libxmltv.Core
17              using (XMLTVProgramCollection g = new XMLTVProgramCollection(xmltv))
18              {
19                  g.instance.Programs = g.Collection;
20 <                xmltv_logger.Log.Info.WriteLine(g.ToString());
20 >                xmltv_logger.Info.WriteLine(g.ToString());
21              }
22          }
23          private XMLTVRuntimeInstance instance;
24          protected XMLTVProgramCollection(XMLTVRuntimeInstance xmltv)
25          {
26 <            xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgramCollection");
26 >            xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVProgramCollection");
27              //IXMLTV_PARSER _xmltv;
28              //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }
29              //XMLTV_PARSER = _xmltv;
# Line 58 | Line 58 | namespace libxmltv.Core
58              {
59                  if (instance.IsAborting)
60                  {
61 <                    xmltv_logger.Log.Verbose.Debug.WriteLine("Detected Instance abort event...");
61 >                    xmltv_logger.Verbose.Debug.WriteLine("Detected Instance abort event...");
62                      break;
63                  }
64                  Program program = new Program();
65  
66                  program.Id = index;
67 <                xmltv_logger.Log.Verbose.Debug.WriteLine("program_Id: {0}", program.Id);
67 >                xmltv_logger.Verbose.Debug.WriteLine("program_Id: {0}", program.Id);
68                  if (c.HasAttributes)
69                  {
70                      var start = c.Attribute(XMLTVConstants.Programs.ProgramStart).Value;
71                      program.Start = ParseDate(start);
72 <                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_start: {0}", start);
72 >                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_start: {0}", start);
73                      var stop = c.Attribute(XMLTVConstants.Programs.ProgramStop).Value;
74                      program.Stop = ParseDate(stop);
75 <                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop);
75 >                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop);
76                      var channelid = c.Attribute(XMLTVConstants.Programs.ProgramChannelId).Value;
77 <                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_channelid: {0}", channelid);
77 >                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_channelid: {0}", channelid);
78                      IXMLTVChannel channel = new Channel();
79                      try
80                      {
# Line 82 | Line 82 | namespace libxmltv.Core
82                      }
83                      catch (KeyNotFoundException)
84                      {
85 <                        xmltv_logger.Log.Verbose.Error.WriteLine(string.Format("Unable to find Channel by id: '{0}' for this program.", channelid));
85 >                        xmltv_logger.Verbose.Error.WriteLine(string.Format("Unable to find Channel by id: '{0}' for this program.", channelid));
86                      }
87                      program.Channel = channel;
88 <                    xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_channel: {0}", program.Channel.ToString());
88 >                    xmltv_logger.Verbose.Debug.WriteLine("\tprogram_channel: {0}", program.Channel.ToString());
89                  }
90                  try
91                  {
# Line 93 | Line 93 | namespace libxmltv.Core
93                      program.Title = title;                    
94                  }
95                  catch (Exception) { program.Title = string.Empty; }
96 <                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_title: {0}", program.Title == string.Empty ? "empty" : program.Title);
96 >                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_title: {0}", program.Title == string.Empty ? "empty" : program.Title);
97                  try
98                  {
99                      var subtitle = c.Descendants(XMLTVConstants.Programs.ProgramSubTitle).FirstOrDefault().Value;
100                      program.SubTitle = subtitle;                    
101                  }
102                  catch (Exception) { program.SubTitle = string.Empty; }
103 <                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", program.SubTitle == string.Empty ? "empty" : program.SubTitle);
103 >                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", program.SubTitle == string.Empty ? "empty" : program.SubTitle);
104                  try
105                  {
106                      var description = c.Descendants(XMLTVConstants.Programs.ProgramDescription).FirstOrDefault().Value;
107                      program.Description = description;                    
108                  }
109                  catch (Exception) { program.Description = string.Empty; }
110 <                xmltv_logger.Log.Verbose.Debug.WriteLine("\tprogram_description: {0}", program.Description == string.Empty ? "empty" : program.Description);
110 >                xmltv_logger.Verbose.Debug.WriteLine("\tprogram_description: {0}", program.Description == string.Empty ? "empty" : program.Description);
111  
112                  entries.Add(program.Id, program);
113                  Application.DoEvents();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines