/[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/14 13:08:20	141
+++ branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2018/12/14 19:38:41	298
@@ -56,9 +56,13 @@
         #region Property Dictionary Support
         private IPropertyDictionary _MetaData;
         public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
-        public ExtraList GetExtraMetaData()
-        {
-            return (ExtraList)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
+        public List<IExtraMetaData> GetExtraMetaData()
+        {
+		if (this.MetaData.ContainsProperty (XMLTVConstants.Programs.ProgramExtraMetaData)) {
+			return (List<IExtraMetaData>)this.MetaData [XMLTVConstants.Programs.ProgramExtraMetaData];
+		} else {
+			return new List<IExtraMetaData>();
+		}
         }
         #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22