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

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

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

--- trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/10 09:43:49	97
+++ trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/10 17:41:52	118
@@ -38,15 +38,14 @@
         private void InternalDictionaryAddKnownProperties()
         {
             MetaData = new PropertyList();
-            //MetaData.AddProperty("Id", string.Empty);
         }
         #region IXMLTVChannel members
         public string Id { get; private set; }
         //public int Number { get; private set; }
         //public string CallSign { get; private set; }
         //public string Name { get; private set; }
-        private PropertyList _MetaData;
-        public PropertyList MetaData { get { return _MetaData; } private set { _MetaData = value; } }
+        private IPropertyList _MetaData;
+        public IPropertyList MetaData { get { return _MetaData; } private set { _MetaData = value; } }
         #endregion
         public override string ToString()
         {
@@ -90,13 +89,7 @@
             // get the channel id
             Id = node.Attribute(XMLTVConstants.Channels.ChannelId).Value;
             xmltv_logger.Verbose.Debug.WriteLine("\tchannel_id: {0}", Id);
-            var names = node.Descendants(XMLTVConstants.Channels.ChannelDisplayName).ToList();
-            //Number = Convert.ToInt32(names[1].Value);
-            //xmltv_logger.Verbose.Debug.WriteLine("\tchannel_number: {0}", Number);
-            //CallSign = names[2].Value;
-            //xmltv_logger.Verbose.Debug.WriteLine("\tchannel_callsign: {0}", CallSign);
-            //Name = names[3].Value;
-            //xmltv_logger.Verbose.Debug.WriteLine("\tchannel_name: {0}", Name);
+            var names = node.Elements().ToList();
 
             foreach (var name in names)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22