Page 1 of 1
OFDb
Posted: 2013-06-28 09:03:05
by Dirk999
Is there any chance for fixing OFDb.ifs? I would be greatefull.
The script shows in Kategorie
<span itemprop="genre">Komödie</span>
Thanks
Dirk
Posted: 2013-06-28 10:03:18
by antp
That's easy to fix.
Just before the line
SetField(fieldCategory, Value);
add a line with
HtmlRemoveTags(Value);
I'll also update the script on the server.
Posted: 2013-06-28 10:55:56
by Raoul_Volfoni
Arff ... too slow
I noticed the Rating part needed to be corrected too.
Code: Select all
// Rating
LineNr := Findline('Note: <span itemprop="ratingValue">', Page, 0);
if LineNr > -1 then
begin
Line:= Page.GetString(LineNr);
BeginPos := Pos('Note: <span itemprop="ratingValue">',Line) + 35;
// I had to add 0.1 here to make the rounding more precise
Value := IntToStr(Round((StrToInt(Copy(Line, BeginPos+2, 2), 0) + 0.1) / 10));
if StrToInt(Value,0) > 9 then
Value := IntToStr(StrToInt(StrGet(Line, BeginPos),0) + 1) + '.0'
else
Value := StrGet(Line, BeginPos) + '.' + Value;
SetField(fieldRating, Value);
end;
Tschüss
Posted: 2013-06-28 13:29:37
by antp
thanks
Posted: 2013-06-28 18:02:34
by Dirk999
you 2 makes me happy, unfortunately i'm not a script-kiddie ;-)
Thanks , thanks, thanks
dirk
Posted: 2014-02-22 23:14:03
by gnuffmaster
Look here for the updated version:
viewtopic.php?t=5672&highlight=ofdb