More then one genre?
Posted: 2002-08-01 19:10:35
Is there any way to change the script to import all genres? (if more than one) i.e Genre: Comedy / Family / Fantasy
This is the HTML:
Thanks in advance
Code: Select all
//Category
LineNr := FindLine('Genre</B>', Page, 0);
if LineNr > -1 then
begin
Line := Page.GetString(LineNr);
BeginPos := pos('/">', Line) + 3;
EndPos := pos('</A>', Line);
Value := copy(Line, BeginPos, EndPos - BeginPos);
HTMLDecode(Value);
SetField(fieldCategory, Value);
end;
Code: Select all
<B CLASS="ch">Genre</B>: <A HREF="/Sections/Genres/Comedy/">Comedy</A> / <A HREF="/Sections/Genres/Family/">Family</A> / <A HREF="/Sections/Genres/Fantasy/">Fantasy</A> <A HREF="/Keywords?0243585"> (more)</A><BR><BR>