Error in culturalianet.com script

You found an error in the program ? Report it here
Post Reply
Jerome

Error in culturalianet.com script

Post by Jerome »

There is a problem with the cover in the culturalianet.com script. It privides the correct information, and it used to provide the cover, but now I think culturalianet.com has changed it´s code, and the cover script doesn´t work properly. Now it shows a cd cover.
Great job, a very useful program!!!
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Do you have an old version of this script (old than October 2002 I think) ?
I rewrote the script to have a more direct access to the database (thanks to the webmaster of the site), so the script does not rely on the code of the site anymore.
If you have this problem with the new script, please give me which movie titles gives the error so I can contact the webmaster (I tried with few movies but I got the movie cover and not a CD cover).
PT

RE: Error in culturalianet.com script

Post by PT »

I have the same problem and I found the solution today. The problem is that sometimes the query gets back a page with a double <br> before picture and URL data and sometimes only one. I have solved the problem replacing the line:

Page.Text := StringReplace(GetPage(Address), '<br>', #13#10);

with this:

Page.Text := StringReplace(GetPage(Address), '<br><br>', #13#10);
Page.Text := StringReplace(Page.Text, '<br>', #13#10);

I hope this can help.
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

ok, thanks.
Post Reply