Opened 12 years ago

Closed 12 years ago

#4063 closed defect (fixed)

Perl bindings-Add recstatustype variables to MythTV.pm

Reported by: sphery <mtdean@…> Owned by: xris
Priority: minor Milestone: unknown
Component: perl / nuvexport Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The attached patch adds recstatustype variables to MythTV.pm to allow direct comparison with the recstatus field in Program. Currently, comparisons must be done as:

($show->{'recstatus'} == 10)

or

($RecStatus_Types{$show->{'recstatus'}} == 'Inactive')

After the patch, the comparison could be done with:

($show->{'recstatus'} == $recstatustype_inactive)

the main benefit of the final approach is the "compiler-checking" provided by the variable name to help catch typographical errors.

Attachments (1)

mythtv-perl_bindings-recstatustype_variables.patch (4.3 KB) - added by sphery <mtdean@…> 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by sphery <mtdean@…>

comment:1 Changed 12 years ago by xris

Resolution: fixed
Status: newclosed

(In [14624]) add recstatus constant patch from sphery, with minor modifications. Closes #4063

Note: See TracTickets for help on using tickets.