/[xmltv_parser]/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
ViewVC logotype

Diff of /branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs

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

--- trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 18:19:12	120
+++ branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2015/07/29 19:09:14	282
@@ -56,9 +56,9 @@
         #region Property Dictionary Support
         private IPropertyDictionary _MetaData;
         public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
-        public ExtraList GetExtraMetaData()
+        public List<IExtraMetaData> GetExtraMetaData()
         {
-            return (ExtraList)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
+            return (List<IExtraMetaData>)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
         }
         #endregion
 
@@ -70,8 +70,8 @@
                  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"));
+                ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStart]).ToDateTimeString(),
+                ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStop]).ToDateTimeString());
         }
 
 
@@ -239,12 +239,20 @@
                 {                    
                     var start = node.Attribute(XMLTVConstants.Programs.ProgramStart);
                     var t_start = start == null ? new DateTime() : ParseDate(start.Value);
-                    if (!t_start.Equals(new DateTime())) { xmltv_logger.Verbose.Debug.WriteLine("\tprogram_start: {0}", start); }
+                    if (!t_start.Equals(new DateTime())) 
+                    { 
+                        xmltv_logger.Verbose.Debug.WriteLine("\tprogram_start: {0}", start);
+                        xmltv_logger.Verbose.Debug.WriteLine("\tprogram_start dt: {0}", t_start.ToString()); 
+                    }
                     instance.MetaData.AddProperty(XMLTVConstants.Programs.ProgramStart, t_start);
 
                     var stop = node.Attribute(XMLTVConstants.Programs.ProgramStop);
                     var t_stop = stop == null ? new DateTime() : ParseDate(stop.Value);
-                    if (!t_stop.Equals(new DateTime())) { xmltv_logger.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop); }
+                    if (!t_stop.Equals(new DateTime())) 
+                    { 
+                        xmltv_logger.Verbose.Debug.WriteLine("\tprogram_stop: {0}", stop);
+                        xmltv_logger.Verbose.Debug.WriteLine("\tprogram_stop dt: {0}", t_stop.ToString()); 
+                    }
                     instance.MetaData.AddProperty(XMLTVConstants.Programs.ProgramStop, t_stop);
 
                     var channelid = node.Attribute(XMLTVConstants.Programs.ProgramChannelId);

 

  ViewVC Help
Powered by ViewVC 1.1.22