Page 1 of 1
Update OFDB-IMDB (DE)
Posted: 2008-09-13 10:31:23
by gerol
Hi,
you must change the expression
to
otherwise you will not be able to change the movie title, if there is no search result.
Maybe there is another 'bug' (?) in the script: If the same title ist found as 'Exakte Ergebnisse' and as 'Ungefähre Ergebnisse', this title is shown twice as search result. I didn't change the script in this point, because I'm not shure, if this could be important under some circumstances. I think, it's not important.
Next modification is some posts below!
Posted: 2008-09-13 18:04:12
by bad4u
Thanks. I changed it on the script.
OFDb - IMDb 1.4.0:
http://www.bad4u.741.com/full/OFDb%20-% ... 8DE%29.ifs (copy link into a NEW browser window !)
Maybe there is another 'bug' (?) in the script: If the same title ist found as 'Exakte Ergebnisse' and as 'Ungefähre Ergebnisse', this title is shown twice as search result.
That happens when translated and original title of the film are identical. The website search shows movies with matching translated title as "Exakte Ergebnisse" and movies with matching original title as "Ungefähre Ergebnisse" - and so does the script, but as it does not split the results list into categories you cannot see it. I added some code to the script, so that now the results list will be divided into same categories that website shows (Exakte Erebnisse, Sehr ähnliche Ergebnisse, Ungefähre Ergebnisse, ..).
Posted: 2008-09-14 16:59:31
by gerol
@bad4u
Your modification works great. Thank you.
But let me remark, that the double entry not only appears, if translated and original title are identical. You can try it for example with the movie 'Adams Äpfel'. The original title is 'Adams æbler' and the translated title 'Adams Äpfel'. The title appears twice as 'Exakte Ergebnisse' and as 'Ungefähre Ergebnisse'.
Posted: 2008-09-14 19:52:04
by bad4u
Well, I didn't try lots of movies for double results.
In this case it is because of translated title (Adams Äpfel) and alternative title (Adams Äpfel - Gott ist auf meiner Seite) contain the same phrase - instead of the original title. But as the script only shows the same as the website does, and now you get the same categorization on the results list, it doesn't really make sense to change that any more

Posted: 2008-09-16 15:58:07
by gerol
Hi,
today the next modification is necessary:
You must change the part
Code: Select all
// IMDb Rating
LineNr := FindLine('User Rating:', Page, 0);
if LineNr > -1 then
begin
Line := Page.GetString(LineNr + 1);
if Pos('awaiting', Line) = 0 then
begin
Line := Page.GetString(LineNr + 1);
BeginPos := pos('<b>', Line) + 3;
EndPos := BeginPos + 3;
Value := copy(Line, BeginPos, EndPos - BeginPos);
SetField(fieldRating, Value);
end;
end;
to
Code: Select all
// IMDb Rating
LineNr := FindLine('/10</b>', Page, 0);
if LineNr > -1 then
begin
Line := Page.GetString(LineNr);
BeginPos := pos('<b>', Line) + 3;
EndPos := BeginPos + 3;
Value := copy(Line, BeginPos, EndPos - BeginPos);
SetField(fieldRating, Value);
end;
otherwise you will not get the IMDb Rating.