Ticket #8457: mythweb_disabled_recstatus.patch

File mythweb_disabled_recstatus.patch, 1.6 KB (added by Tom Dexter <digitalaudiorock@…>, 9 years ago)
  • mythplugins/mythweb/modules/tv/includes/recording_schedules.php

     
    6060                      rectype_findweekly => t('rectype: findweekly'),
    6161                     );
    6262
     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    );
    6378// Global lists of recording schedules and scheduled recordings
    6479    global $Schedules;
    6580    $Schedules = array();
     
    86101            list($Num_Conflicts, $Num_Scheduled) = $program;
    87102    // Normal entry:  $Scheduled_Recordings[callsign][starttime][]
    88103        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);
    90106    }
    91107
    92108// Transcoder names