IMDB (batch).ifs - Description
Posted: 2004-08-21 02:39:51
hi, i was just using a slightly modified IMDB (batch).ifs to try and update my movie catalog
it did everything i wanted except for the description part
i wanted the short description for all my movies but since some description on the imdb homepage are longer then other, they end with "... (more)" etc etc
how do i make the discription end with the ... and no
<a href="/rg/title-tease/plotsummary/title/tt0000000/plotsummary">(more)</a ?
to simplify
i want: "This movie is about a monkey and his..."
i dont want: "This movie is about a monkey and his...<a href="/rg/title-tease/plotsummary/title/tt0000000/plotsummary">(more)</a"
can anybody who knows how to program the scripts help me?^^
heres the code thats in the description part
that same from the latest IMDB (batch).ifs
it did everything i wanted except for the description part
i wanted the short description for all my movies but since some description on the imdb homepage are longer then other, they end with "... (more)" etc etc
how do i make the discription end with the ... and no
<a href="/rg/title-tease/plotsummary/title/tt0000000/plotsummary">(more)</a ?
to simplify
i want: "This movie is about a monkey and his..."
i dont want: "This movie is about a monkey and his...<a href="/rg/title-tease/plotsummary/title/tt0000000/plotsummary">(more)</a"
can anybody who knows how to program the scripts help me?^^
heres the code thats in the description part
Code: Select all
//Description
if ImportDescription then
begin
LineNr := FindLine('Plot Summary:', Page, 0);
if LineNr < 1 then
LineNr := FindLine('Plot Outline:', Page, 0);
if LineNr > -1 then
begin
Line := Page.GetString(LineNr);
BeginPos := pos('</b>', Line) + 5;
EndPos := pos('<a href', Line);
if EndPos < 1 then
begin
Line := Line + Page.GetString(LineNr+1);
EndPos := pos('<br><br>', Line);
if EndPos < 1 then
EndPos := Length(Line);
end;
Value := copy(Line, BeginPos, EndPos - BeginPos);
HTMLDecode(Value);
if UseLongestDescription then
SetField(fieldDescription, GetDescriptions(MovieURL + 'plotsummary'))
else
SetField(fieldDescription, Value);
end;
end;