Ticket #8457: mythweb_disabled_recstatus.patch
File mythweb_disabled_recstatus.patch, 1.6 KB (added by , 14 years ago) |
---|
-
mythplugins/mythweb/modules/tv/includes/recording_schedules.php
60 60 rectype_findweekly => t('rectype: findweekly'), 61 61 ); 62 62 63 // Array to detect and skip disabled recordings 64 $DisabledRecStatus = array( 65 -8 => true, # recstatus_tunerbusy 66 -7 => true, # recstatus_lowdiskspace 67 -6 => true, # recstatus_cancelled 68 -5 => true, # recstatus_deleted 69 -4 => true, # recstatus_aborted 70 1 => true, # recstatus_dontrecord 71 4 => true, # recstatus_earliershowing 72 5 => true, # recstatus_toomanyrecordings 73 6 => true, # recstatus_notlisted 74 8 => true, # recstatus_latershowing 75 10 => true, # recstatus_inactive 76 11 => true # recstatus_neverrecord 77 ); 63 78 // Global lists of recording schedules and scheduled recordings 64 79 global $Schedules; 65 80 $Schedules = array(); … … 86 101 list($Num_Conflicts, $Num_Scheduled) = $program; 87 102 // Normal entry: $Scheduled_Recordings[callsign][starttime][] 88 103 else 89 $Scheduled_Recordings[$program[6]][$program[11]][] =& new Program($program); 104 if (!isset($DisabledRecStatus[$program[21]])) 105 $Scheduled_Recordings[$program[6]][$program[11]][] =& new Program($program); 90 106 } 91 107 92 108 // Transcoder names