xmltv/lib IMDB.pm,1.63,1.64
Geoff <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/lib
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13674
Modified Files:
IMDB.pm
Log Message:
(minor) add option ('numActors') to change number of actors output (default=3)
Index: IMDB.pm
===================================================================
RCS file: /cvsroot/xmltv/xmltv/lib/IMDB.pm,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** IMDB.pm 12 May 2014 09:25:41 -0000 1.63
--- IMDB.pm 18 May 2014 11:18:41 -0000 1.64
***************
*** 83,86 ****
--- 83,88 ----
$self->{updatePlot}=0 if ( !defined($self->{updatePlot})); # default is to NOT add plot
+ $self->{numActors}=3 if ( !defined($self->{numActors})); # default is to add top 3 actors
+
$self->{moviedbIndex}="$self->{imdbDir}/moviedb.idx";
$self->{moviedbData}="$self->{imdbDir}/moviedb.dat";
***************
*** 1081,1086 ****
my @list;
! # add top 3 billing actors list form www.imdb.com
! for my $name (splice(@{$details->{actors}},0,3)) {
push(@list, $name);
}
--- 1083,1088 ----
my @list;
! # add top billing actors (default = 3) from www.imdb.com
! for my $name (splice(@{$details->{actors}},0,$self->{numActors})) {
push(@list, $name);
}
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs