Opened 11 years ago

Closed 11 years ago

#6071 closed patch (fixed)

Original airdate problem with perl-bindings

Reported by: otto at kolsi dot fi Owned by: xris
Priority: minor Milestone: unknown
Component: perl / nuvexport Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

When running one of the scripts using Perl bindings (e.g. mythrename.pl), there are following errors:

Use of uninitialized value $oyear in substr at /usr/local/lib/perl5/site_perl/5.10.0/MythTV/Program.pm line 380.
substr outside of string at /usr/local/lib/perl5/site_perl/5.10.0/MythTV/Program.pm line 380.
Use of uninitialized value $omonth in int at /usr/local/lib/perl5/site_perl/5.10.0/MythTV/Program.pm line 382.
Use of uninitialized value $oday in int at /usr/local/lib/perl5/site_perl/5.10.0/MythTV/Program.pm line 384.

This is probably because program table has only empty (or 0000) values in airdate column.

Attached patch contains one possible fix for this problem.

Attachments (1)

perl-bindings-airdate.patch (829 bytes) - added by otto at kolsi dot fi 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by otto at kolsi dot fi

Attachment: perl-bindings-airdate.patch added

comment:1 Changed 11 years ago by xris

Resolution: fixed
Status: newclosed

(In [20336]) apply slightly modified version of otto's patch to deal with missing original-airdate fields. Closes #6071

Note: See TracTickets for help on using tickets.