/[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 revision 140 by william, Thu Mar 14 12:43:38 2013 UTC branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs revision 298 by william, Fri Dec 14 19:38:41 2018 UTC
# Line 56  namespace libxmltv.Core Line 56  namespace libxmltv.Core
56          #region Property Dictionary Support          #region Property Dictionary Support
57          private IPropertyDictionary _MetaData;          private IPropertyDictionary _MetaData;
58          public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }          public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
59          public ExtraList GetExtraMetaData()          public List<IExtraMetaData> GetExtraMetaData()
60          {          {
61              return (ExtraList)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];                  if (this.MetaData.ContainsProperty (XMLTVConstants.Programs.ProgramExtraMetaData)) {
62                            return (List<IExtraMetaData>)this.MetaData [XMLTVConstants.Programs.ProgramExtraMetaData];
63                    } else {
64                            return new List<IExtraMetaData>();
65                    }
66          }          }
67          #endregion          #endregion
68    
# Line 70  namespace libxmltv.Core Line 74  namespace libxmltv.Core
74                   MetaData[XMLTVConstants.Programs.ProgramTitle].ToString(),                   MetaData[XMLTVConstants.Programs.ProgramTitle].ToString(),
75                   MetaData[XMLTVConstants.Programs.ProgramSubTitle].ToString(),                   MetaData[XMLTVConstants.Programs.ProgramSubTitle].ToString(),
76                   MetaData[XMLTVConstants.Programs.ProgramChannelId].ToString(),                   MetaData[XMLTVConstants.Programs.ProgramChannelId].ToString(),
77                  ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStart]).ToString("yyyy/MM/dd hh:mm tt"),                  ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStart]).ToDateTimeString(),
78                  ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStop]).ToString("yyyy/MM/dd hh:mm tt"));                  ((DateTime)MetaData[XMLTVConstants.Programs.ProgramStop]).ToDateTimeString());
79          }          }
80    
81    

Legend:
Removed from v.140  
changed lines
  Added in v.298

  ViewVC Help
Powered by ViewVC 1.1.22