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

Diff of /trunk/GBPVRProgramDatabaseFixer/Program.cs

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

--- trunk/GBPVRProgramDatabaseFixer/Program.cs	2013/03/20 06:54:00	247
+++ trunk/GBPVRProgramDatabaseFixer/Program.cs	2013/03/28 06:58:11	250
@@ -237,18 +237,13 @@
             {
                 RecordingStatus status = (RecordingStatus)recording.status;
                 RecordingType type = (RecordingType)recording.recording_type;
-                if (type == RecordingType.TYPE_RECORD_SEASON)
-                {
-                    continue; // ignore TYPE_RECORD_SEASON
-                }
-                if (status != RecordingStatus.STATUS_PENDING)
-                {
-                    continue; // ignore any status except STATUS_PENDING
-                }
-                if (recording.recording_group == 0 && recording.programme_oid == 0)
-                {
-                    continue; // ignore manual recordings
-                }
+
+                // ignore any recording whose type is not: RecordingType.TYPE_RECORD_ONCE
+                if (type != RecordingType.TYPE_RECORD_ONCE) { continue; }
+                // ignore any recording whose status is not: RecordingStatus.STATUS_PENDING and not: RecordingStatus.STATUS_IN_PROGRESS
+                if (status != RecordingStatus.STATUS_PENDING && status != RecordingStatus.STATUS_IN_PROGRESS) { continue; }
+                // only fix recordings that have a recording group greater than 0 (zero)
+                if (recording.recording_group == 0) { continue; }
                 // verify data for this recording
                 var recording_oid = recording.oid;
                 var programme_oid = recording.programme_oid;

 

  ViewVC Help
Powered by ViewVC 1.1.22