/[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

--- trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/17 03:17:18	226
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/17 04:02:57	228
@@ -205,9 +205,6 @@
             Int32 priority { get; }
             String conversion_profile { get; }
         }
-
-
-
         private class RECORDING_SCHEDULE : IRECORDING_SCHEDULE, ICloneable<RECORDING_SCHEDULE>
         {
             public RECORDING_SCHEDULE()
@@ -250,7 +247,6 @@
 
             
         }
-
         public interface IPROGRAMME : IEquatable<IPROGRAMME>, ICloneable<IPROGRAMME>
         {
             Int64 oid { get; set; }
@@ -312,6 +308,7 @@
                 definition.Stop = this.end_time.ToDateTimeString();
                 definition.SubTitle = this.sub_title;
                 definition.Title = this.name;
+                definition.Rating = this.rating;
                 return definition;
             }
             #endregion
@@ -470,6 +467,12 @@
                             updated_program.description = xmltv_entry.Description;
                         }
 
+                        if(program_xmltv_entry.Rating != xmltv_entry.Rating)
+                        {
+                            gLog.Verbose.Warn.WriteLine("    Program oid: '{0}' - replacing rating", updated_program.oid);
+                            updated_program.rating = xmltv_entry.Rating;
+                        }
+
                         var updated_xmltv_entry = updated_program.AsXMLTVProgramDefinition(this);
                         if (!xmltv_entry.Equals(updated_xmltv_entry))
                         {

 

  ViewVC Help
Powered by ViewVC 1.1.22