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

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

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

--- trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/09 11:17:13	75
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/09 11:28:41	77
@@ -50,17 +50,16 @@
             var fields = instance_type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
             foreach (var field in fields)
             {
-                if (field.FieldType == typeof(List<IXMLTVChannel>))
+                if (field.FieldType == typeof(List<IXMLTVProgram>))
                 {
                     found_field = true;
                     try
                     {
-                        xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString());
-                        //field.SetValue(this.GetInstance(), new List<IXMLTVChannel>() { this });
-
+                        
                         var list = (List<IXMLTVProgram>)field.GetValue(this.GetInstance());
                         this.Id = list.Count + 1;
                         list.Add(this);
+                        xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString());
                         field.SetValue(this.GetInstance(), list);
                         break;
                     }

 

  ViewVC Help
Powered by ViewVC 1.1.22