Skip Menu |

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

Report information
The Basics
Id: 5369
Status: rejected
Priority: 0/
Queue: IMDB-Movie

People
Owner: Nobody in particular
Requestors: kirk [...] bohica.net
Cc:
AdminCc:

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



Subject: New feature for grabbing movie rating (not user rating)
Hi, This is for IMDB::Movie-0.12 Have have added code in to grab the movie industry rating. This code could probably be modified as I hard coded the US rating (all I was interested in) but I didn't know the best way to pass what country to grab the rating for. Here is the _rate routine... (do you prefer I attach patch files instead?) sub _rate { my $parser = shift; my ( $tag, $tmp ); while ($tag = $parser->get_tag('a')) { $tmp = $tag->[1]->{href}; if ( $tmp =~ /certificates=USA:(.*)\&\&/ ) { return $1; } $tmp = undef; } return undef; } The line rate -> _rate($parser) also needs to be added into the $self hash under new. ---- Kirk
Subject: IMDB::Movie on hold
Thanks to everyone for submitting these bug reports. I am planning on rewriting IMDB::Movie (using WWW::Mechanize this time) and i will review all of these bugs/feature requests/patches when i write it. jeffa
use IMDB::Film;