Skip Menu |

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

Report information
The Basics
Id: 75384
Status: patched
Priority: 0/
Queue: IMDB-Film

People
Owner: Nobody in particular
Requestors: guilhem [...] cpan.org
Cc:
AdminCc:

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



Subject: Detect missing storyline
IMDB adds a line "Add Full Plot | Add Synopsis" to movies without storyline (e.g., crit => '1728130'), that is retrieved by IMDB::Film->storyline(). This line should probably be dropped and the empty string returned instead.
That should make it.
Subject: empty-storyline.diff
--- lib/IMDB/Film.pm 2011-09-28 10:55:51.000000000 +0200 +++ lib/IMDB/Film.pm 2012-03-01 19:24:07.631971353 +0100 @@ -949,7 +949,7 @@ last if $parser->get_text =~ /^storyline$/i; } - my $plot = $parser->get_trimmed_text(MAIN_TAG, 'em'); + my $plot = $parser->get_trimmed_text(MAIN_TAG, 'em', 'span'); $self->{_storyline} = $self->_decode_special_symbols($plot); }