Ticket #4208: MythTV.pm.constants.patch

File MythTV.pm.constants.patch, 1.4 KB (added by andrew@…, 18 years ago)

Patch

  • MythTV.pm

    old new  
    77# @author    $Author: xris $
    88#
    99
     10package MythTV;
     11
    1012# Version
    1113    $VERSION = '.20';
    1214
     
    1618    use MythTV::Channel;
    1719
    1820# Define some constants
    19     use constant {
     21    use constant ( {
    2022                 # Constants for the recording types
    2123                  rectype_once       =>  1,
    2224                  rectype_daily      =>  2,
     
    3436                  searchtype_keyword => 3,
    3537                  searchtype_people  => 4,
    3638                  searchtype_manual  => 5,
    37                  };
    38 
    39 package MythTV;
     39    } );
    4040
    4141    use IO::Socket;
    4242    use Sys::Hostname;
  • MythTV/Program.pm

    old new  
    9898        $self->{'is_editing'}   = ($self->{'progflags'} & 0x08) ? 1 : 0;    # FL_EDITING   = 0x08
    9999        $self->{'bookmark'}     = ($self->{'progflags'} & 0x10) ? 1 : 0;    # FL_BOOKMARK  = 0x10
    100100    # And some other calculated fields
    101         $self->{'will_record'} = ($self->{'rectype'} && $self->{'rectype'} != rectype_dontrec) ? 1 : 0;
     101        $self->{'will_record'} = ($self->{'rectype'} && $self->{'rectype'} != MythTV::rectype_dontrec()) ? 1 : 0;
    102102
    103103    # Defaults
    104104        $self->{'title'}       = 'Untitled'       unless ($self->{'title'} =~ /\S/);