/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs

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

revision 180 by william, Sat Mar 16 17:41:52 2013 UTC revision 181 by william, Sat Mar 16 17:56:55 2013 UTC
# Line 235  namespace GBPVRProgramDatabaseFixer Line 235  namespace GBPVRProgramDatabaseFixer
235              public IProgramDefinition AsXMLTVProgramDefinition(ISQLLITE sqllite)              public IProgramDefinition AsXMLTVProgramDefinition(ISQLLITE sqllite)
236              {              {
237                  ProgramList.ProgramDefintion definition = new ProgramList.ProgramDefintion();                  ProgramList.ProgramDefintion definition = new ProgramList.ProgramDefintion();
238    
239                  var channel = sqllite.Channels.Find(s => s.oid == this.channel_oid);                  var channel = sqllite.Channels.Find(s => s.oid == this.channel_oid);
240                  definition.ChannelName = channel.display_name;                  var channelname = channel.display_name;
241                  definition.ChannelNumber = (int)channel.channel_number;                  var split = channelname.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
242                    definition.ChannelNumber = Convert.ToInt32(split.First());
243                    definition.ChannelName = string.IsNullOrEmpty(split.Last()) ? string.Empty : split.Last().ToString();
244                  definition.Description = this.description;                  definition.Description = this.description;
245                  definition.Start = this.start_time.ToDateTimeString();                  definition.Start = this.start_time.ToDateTimeString();
246                  definition.Stop = this.end_time.ToDateTimeString();                  definition.Stop = this.end_time.ToDateTimeString();
# Line 339  namespace GBPVRProgramDatabaseFixer Line 342  namespace GBPVRProgramDatabaseFixer
342                      else                      else
343                      {                      {
344                          // data is the same                          // data is the same
                         if (Debugger.IsAttached)  
                         {  
                             Debugger.Break();  
                         }  
345                      }                      }
346                  }                  }
347                    index++;
348              }              }
349    
350              #region old-code              #region old-code

Legend:
Removed from v.180  
changed lines
  Added in v.181

  ViewVC Help
Powered by ViewVC 1.1.22