Skip Menu |

This queue is for tickets about the IMDB-Film CPAN distribution.

Report information
The Basics
Id: 89571
Status: new
Priority: 0/
Queue: IMDB-Film

People
Owner: Nobody in particular
Requestors: alexandre.ramirez [...] est.fib.upc.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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?
Subject: Re: [rt.cpan.org #89571] AutoReply: Bug in IMDB::Film
Date: Thu, 17 Oct 2013 17:07:05 +0200
To: bug-IMDB-Film [...] rt.cpan.org
From: Alexandre Ramírez Gómez <alexandre.ramirez [...] est.fib.upc.edu>
I seem to have found a dirty workaround: I assign the '_kind' field to 'tv series' and then call the 'episodes()' function. If it returns 'undef', it's a film; if it returns the list of episodes, it's obviously a tv show. Like this: my $item = new IMDB::Film(crit => 'the big bang theory'); $item ->{'_kind'}= 'tv series'; $item ->{'_kind'}= 'movie' if(not $item->episodes()); This is only useful to distinguish a tv show, not a videogame or any other kind of item, but that is all I need for my program. I know it's not nice, but it keeps me going. PS: I managed to get results in another language and the error persists, so we can rule that out.