/[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 17:48:02	91
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 11:09:56	103
@@ -54,7 +54,8 @@
         }
 
         #region Property Dictionary Support
-        public PropertyDictionary MetaData { get; private set; }
+        private PropertyDictionary _MetaData;
+        public PropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
         #endregion
 
         #endregion
@@ -62,9 +63,9 @@
         {
             return string.Format("{0}: {1} - {2} ({3}) ['{4}' <==> '{5}']",
                 MetaData["Id"].ToString(),
-                 MetaData[(XMLTVConstants.Programs.ProgramTitle)].ToString(),
-                 MetaData[(XMLTVConstants.Programs.ProgramSubTitle)].ToString(),
-                 MetaData[(XMLTVConstants.Programs.ProgramChannelId)].ToString(),
+                 MetaData[XMLTVConstants.Programs.ProgramTitle].ToString(),
+                 MetaData[XMLTVConstants.Programs.ProgramSubTitle].ToString(),
+                 MetaData[(XMLTVConstants.Programs.ProgramChannelId].ToString(),
                 ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStart]).ToString("yyyy/MM/dd hh:mm tt"),
                 ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStop]).ToString("yyyy/MM/dd hh:mm tt"));
         }
@@ -107,7 +108,8 @@
 
         private void Create(XElement node)
         {
-            var nodes = node.DescendantsAndSelf().ToList();
+            CreateHandlerForProgramMetaDataNode(node);
+            var nodes = node.Elements().ToList();
             foreach (var sub_node in nodes)
             {
                 if (this.GetInstance().IsAborting)

 

  ViewVC Help
Powered by ViewVC 1.1.22