Subject: | Bug in IMDB::Film |
Date: | Wed, 16 Oct 2013 21:19:06 +0200 |
To: | bug-IMDB-Film [...] rt.cpan.org |
From: | Alexandre Ramírez Gómez <alexandre.ramirez [...] est.fib.upc.edu> |
Hello,
I would like to report a bug in the Perl module IMDB::Film (version 0.53).
It appears the kind() function always returns 'movie' (it probably fails to
get the proper kind and defaults to 'movie').
Here is an example:
foreach('the big bang theory', 'portal', 'blade runner') {
my $item = new IMDB::Film(crit => $_);
print $item->title() . ": " . $item->kind() . "\n";
}
This piece of code outputs the following:
The Big Bang Theory: movie
Portal: movie
Blade Runner: movie
As you can imagine, the first two should be 'tv series' and 'videogame'
respectively.
I discovered this while trying to use the function episodes(), which fails
every time due to the show being treated as a 'movie'.
Thanks.
PS: I am Spanish and thus IMDB displays in Spanish. Maybe this has
something to do?