/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

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

revision 91 by william, Sat Mar 9 17:48:02 2013 UTC revision 97 by william, Sun Mar 10 09:43:49 2013 UTC
# Line 177  namespace xmltv_parser Line 177  namespace xmltv_parser
177                  var instance = XMLTV.GetInstance();                  var instance = XMLTV.GetInstance();
178                  var id = program.MetaData[XMLTVConstants.Programs.ProgramChannelId].ToString();                  var id = program.MetaData[XMLTVConstants.Programs.ProgramChannelId].ToString();
179                  Channel = instance.Channels.Find(m => m.Id == id);                  Channel = instance.Channels.Find(m => m.Id == id);
180                  ListViewItem li = new ListViewItem(string.Format("{0} {1}", Channel.Number, Channel.CallSign));                  //ListViewItem li = new ListViewItem(string.Format("{0} {1}", Channel.Number, Channel.CallSign));
181                    if (Channel.MetaData.Count() == 0)
182                    {
183                        throw new InvalidOperationException(string.Format("Unable to get channel display name for channel id: {0}", Channel.Id));
184                    }
185                    ListViewItem li = new ListViewItem(string.Format("{0}", Channel.MetaData[0].Value));
186                  li.Tag = program;                  li.Tag = program;
187                  li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.MetaData[XMLTVConstants.Programs.ProgramTitle].ToString()));                  li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.MetaData[XMLTVConstants.Programs.ProgramTitle].ToString()));
188                  li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.MetaData[XMLTVConstants.Programs.ProgramSubTitle].ToString()));                  li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.MetaData[XMLTVConstants.Programs.ProgramSubTitle].ToString()));

Legend:
Removed from v.91  
changed lines
  Added in v.97

  ViewVC Help
Powered by ViewVC 1.1.22