Search found 15 matches

by herman
2018-03-10 17:32:20
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

Re: IMDB Script not working

so imdb changed again code, its needed to update line 551

from

Value := TextBetween(Value, '<div class="text">','</div>');

to

Value := TextBetween(Value, '<div class="text show-more__control">','</div>');
by herman
2018-02-17 11:26:07
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

[quote="Mamdouh"]If I want to replace the Producer field (which import producer names) with the Production Companies (to import all production companies) . how can I edit the script to do this.[/quote]

// Producer
if CanSetField(fieldProducer) then
begin
FullValue := '';
Value := TextBetween ...
by herman
2018-02-17 02:29:42
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

the problem is in general in getpage function when this function gets as parameter url link. When url link is empty it will pass.

I dont know what causes this, i tried link with http/https and it didnt helped. I found temporary solution which works for me, its not best solution, but the same that ...
by herman
2018-02-16 08:55:51
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

it gives iohander error on each line with getpage function. As a temporary fix till imdb returns back to normal or somebody fix this function i have taken getpageex function from csfd script and put it instead of getpage function and it works now OK.
by herman
2018-02-15 21:00:22
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

yep, again IO handler error, again getpage function

PageText := ConvertToASCII(GetPage(Address));

Dont know what is imdb doing again...
by herman
2018-02-09 21:45:12
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

hmm, now it stopped, strange.
by herman
2018-02-09 21:22:16
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

interesting, i am getting IO handler value is not valid error on each movie now.

when i am on line with GetPage function.
by herman
2018-02-03 11:36:16
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

both mentioned movies imported OK for me.
by herman
2017-12-28 17:19:15
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

writers

For those who are interested i added to writers their "writers role". So it will looks like:

Bill Svanoe (story), Hilary Henkin (screenplay), Dean Riesner (written by)


[code]
// Writer
if CanSetField(fieldWriter) then
begin
Value := TextBetween(PageText, '<table class="subpage_data spFirst ...
by herman
2017-12-28 17:14:05
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

producers

for those who are interested i added to producers names their "producers role" so it will looks like:

Brent Baum (producer), Michael Baumgarten (line producer), Des Carey (executive producer), Aaron Judkins (associate producer), Matthew Marsden (producer), Patrick Millsaps (executive producer), Joe ...
by herman
2017-12-26 16:29:21
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

description

I dont know why but some movies missing plot summary down on the main page, so i updated the code to take the longest summary from plotsummary subscreen:


[code]
// Description
if CanSetField(fieldDescription) then
begin
if (GetOption('DescriptionSelection') = 0) then
begin
Value ...
by herman
2017-12-26 16:09:56
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

awards

For anybody who is interested I updated awards section, for some movies it didnt imported correctly and i didnt liked layout

[code]
// Import awards
procedure ImportAwards;
var
IndexPage: TStringList;
PageText, FullValue, Block, Value, Row, Outcome, Details, AwardShow, PageText1, Person ...
by herman
2017-12-26 11:39:20
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

original title and year didnt worked for some movies, so for original title i changed the whole section by this and now works:

// OriginalTitle & Year
if CanSetField(fieldOriginalTitle) or CanSetField(fieldYear) then
begin
originalTitle := TextBefore(PageText, '(original title)', '</h3>');
if ...
by herman
2017-12-25 15:52:24
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

for 10 comments selection (commenttype = 1) just replace the section by this and add missing variables used in script:

if (GetOption('CommentType') = 1) then
begin
begin
Value2 := '';
Value3 := '';
p:= 0;
FullValue := ConvertToASCII(GetPage(MovieURL+'/reviews'));
FullValue := TextAfter ...
by herman
2017-12-25 11:06:46
Forum: Ant Movie Catalog > Scripts
Topic: IMDB Script not working
Replies: 173
Views: 28500

for poster to work just update one line in ImportLargePicture function:

Value := TextBetween(PageText, 'alt="Poster"', '/>');

and it gonna to work. They still change something.