Subject: | Minor Bug in sub _fill_vitals in WWW::TV::Episode |
Date: | Thu, 24 Aug 2006 12:57:59 +0200 |
To: | <bug-WWW-TV [...] rt.cpan.org> |
From: | Ulrich Müller <ul.muller [...] bluewin.ch> |
Hi there!
When an episode hasn't yet been aired, the aired label gets the value "n/a"
which wasn't properly parsed in _fill_vitals.
Problem occurs in this code:
#!/usr/bin/perl
use WWW::TV;
my $series = WWW::TV::Series->new(name => 'House');
my @episodes = $series->episodes;
print $episodes[51]->id."\n";
print $episodes[51]->episode_number."\n"; #Doesn't output correct
episode nr
I suggest something like this, since it seems to have fixed it for me:
First\sAired:\s(?:\w+\s(\w+\s\d\d?,\s\d{4})|n/a)
On line 340.
Thanks for a great package otherwise and keep up the good work.
Best wishes,
Ulrich Müller
Switzerland