Subject: | Error getting full plot |
Using IMDB-Film-0.16
Running perl v5.8.6
On Linux kernel v2.4.24
My test script:
#!/usr/bin/perl -w
use IMDB::Film;
my $film = new IMDB::Film(crit => "not another teen movie", debug => 1)
or print "UNKNOWN ERROR";
my $fullplot = $film->full_plot;
#eof
The debug output:
[DEBUG] CRIT: not another teen movie at ./simpleimdbtest.pl line 5
[DEBUG] Retrieving page from internet ... at ./simpleimdbtest.pl line 5
[DEBUG] URL is [http://www.imdb.com/find?tt=on;mx=20;q=not another teen movie]... at ./simpleimdbtest.pl line 5
[ERROR] Getting full plot ... at ./simpleimdbtest.pl line 8
Also there seems to be an error in the documentation. Film.pm line 640 lists the method as aka() which doesn't exist; this should probably be replaced with the actual method name, also_known_as().
One other thing I've noticed (which may be due to my relative inexperience with perl) is that when adding the lines:
my @matched = @{ $film->matched() };
print "multiple matches\n" if scalar(@matched);
For movies that have a single match, I get the error:
Can't use an undefined value as an ARRAY reference at <matched() method call>
Whereas the error does not appear when there are multiple matches. I believe the behavior for this method was different in v0.12 but I could be wrong; I haven't tried to use this method since developing my script based on v0.12.
It looks like v0.16 was released just today, so thank you for the work you're putting into the module. When I noticed also_known_as() was added at some point since v0.12 I was interested because it will be useful for me.