ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
(Generate patch)

Comparing branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs (file contents):
Revision 297 by william, Wed Jul 29 19:09:14 2015 UTC vs.
Revision 298 by william, Fri Dec 14 19:38:41 2018 UTC

# Line 57 | Line 57 | namespace libxmltv.Core
57          private IPropertyDictionary _MetaData;
58          public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
59          public List<IExtraMetaData> GetExtraMetaData()
60 <        {
61 <            return (List<IExtraMetaData>)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
60 >        {
61 >                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
68  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines