Ticket #4208: MythTV.pm.constants.patch
File MythTV.pm.constants.patch, 1.4 KB (added by , 18 years ago) |
---|
-
MythTV.pm
old new 7 7 # @author $Author: xris $ 8 8 # 9 9 10 package MythTV; 11 10 12 # Version 11 13 $VERSION = '.20'; 12 14 … … 16 18 use MythTV::Channel; 17 19 18 20 # Define some constants 19 use constant {21 use constant ( { 20 22 # Constants for the recording types 21 23 rectype_once => 1, 22 24 rectype_daily => 2, … … 34 36 searchtype_keyword => 3, 35 37 searchtype_people => 4, 36 38 searchtype_manual => 5, 37 }; 38 39 package MythTV; 39 } ); 40 40 41 41 use IO::Socket; 42 42 use Sys::Hostname; -
MythTV/Program.pm
old new 98 98 $self->{'is_editing'} = ($self->{'progflags'} & 0x08) ? 1 : 0; # FL_EDITING = 0x08 99 99 $self->{'bookmark'} = ($self->{'progflags'} & 0x10) ? 1 : 0; # FL_BOOKMARK = 0x10 100 100 # 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; 102 102 103 103 # Defaults 104 104 $self->{'title'} = 'Untitled' unless ($self->{'title'} =~ /\S/);