Change the number of actors
Change the number of actors
Can you modify the part of IMDB script were the actors part is so you only get the first 3 or 5 actors for the movie instead of all the actors?
Since I do not know which one of the three IMDB scripts you want to modify, I'll explain the changes to do :
1.
Locate the line « LineNr: Integer; » thats not far from « procedure AnalyzeMoviePage »
Change it to « LineNr, nActors: Integer; »
2.
Locate the line « // Actors ». Few line bellow, you'll find a line containing « repeat ». Above this line insert the line « nActors := 0; »
3.
About 20-25 lines bellow, find « FullValue := FullValue + Value; »
Under this line insert a new line with « nActors := nActors + 1; »
4.
Few lines bellow, find « until Line = ''; » and replace it with « until (Line = '') or (nActors >= 5); »
It should work fine now (you can replace the 5 by a 3 if you only want the three first actors
)
1.
Locate the line « LineNr: Integer; » thats not far from « procedure AnalyzeMoviePage »
Change it to « LineNr, nActors: Integer; »
2.
Locate the line « // Actors ». Few line bellow, you'll find a line containing « repeat ». Above this line insert the line « nActors := 0; »
3.
About 20-25 lines bellow, find « FullValue := FullValue + Value; »
Under this line insert a new line with « nActors := nActors + 1; »
4.
Few lines bellow, find « until Line = ''; » and replace it with « until (Line = '') or (nActors >= 5); »
It should work fine now (you can replace the 5 by a 3 if you only want the three first actors
