CC: | bug-TVDB-API [...] rt.cpan.org |
Subject: | Re: TVDB::API bug? |
Date: | Sun, 02 Nov 2008 09:18:48 -0500 |
To: | Spencer McEwen <mcewens [...] gmail.com> |
From: | Behan Webster <behanw [...] websterwood.com> |
Spencer McEwen wrote:
Show quoted text
>
> I'm really happy to have stumbled upon this API for a small project
> I'm working. It's going to save a lot of time.
>
Cool. That's good to hear.
Show quoted text> I'm by no means a perl expert, but I've come across something that I
> think should work that isn't. I'm using TVDB::API 0.22 with Perl
> 5.8.8 on OS X 10.5. When I try
>
> $tvdb->getSeasonBanner('Lost','3');
>
> I get the error:
>
> Can't use string ("seasons/73739-3-6.jpg") as an ARRAY ref while
> "strict refs" in use at /Library/Perl/5.8.8/TVDB/API.pm line 259.
>
> I can work around it by getting the first banner from
> getSeasonBanners() like the following:
>
> my @banners = $tvdb->getSeasonBanners('Lost',3);
> my $banner_path = $tvdb->getBanner(@banners[0]);
>
Yeah. Sorry about that. This is indeed a bug. I have this fixed in my
tree already. I will be releasing v0.30 of TVDB::API soon which
includes this fix.
Show quoted text> I did have to force the DBM::Deep package installation due to errors
> during 'make test', but everything else appears to be working fine.
>
I'll look into it. Thanks.
Behan
--
Behan Webster
behanw@websterwood.com