IMDB scripting problem

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

IMDB scripting problem

Post by Guest »

I think it's best if I use an example
1) I am using IMDB import with small pic.
2) When I run the script with the Stolen Summer as the original title I get http://us.imdb.com/Tsearch?title=Stolen+Summer in the URL field.
3) When I add extra words to confuse the program between different movies i.e. I type Stolen Endless Summer then the Movie selection menu pops up and everything is fine and I get the correct URL: http://us.imdb.com/Title?0286162

Also sometimes in the movie description fields I get the string of characters "

For example I got this as the first sentence after an import for Bill and Ted's excellent adventure:
Ted "Theodore" Logan and Bill S. Preston esquire won't graduate if they don't do well in their history presentation.
antp
Site Admin
Posts: 9675
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

for the URL, I know that there is this problem, I should solve that someday...

for the bad characters in description, there is a line
PickListAdd(Value);
that follows a
until (pos('</p>', Line) > 0) or (LineNr = Page.Count);

Just before the PickListAdd, add a line with :
HTMLDecode(Value);

it should solve the problem.
antester

Post by antester »

the DecodeValue line is there it just doesn't "translate" quotation mark escape sequences like "farmed" back into "farmed"

if you look at the html output the escape sequences will display fine.

q: would it be possible to grab the large pictures from amazon.de instead of .com? maybe have separate scripts for text and images (for different languages) and users can check (checkbox) which combination they want?

...more testing
antp
Site Admin
Posts: 9675
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You can simply modify the script if you want.
For the HTMLDecode, are you sure that it does not work ? I'll have to test that...
Ork
Posts: 44
Joined: 2003-01-03 23:52:51
Location: Castres, France

Post by Ork »

HTMLDecode works for me!

I had added it in my "little improvements" I posted at viewtopic.php?t=334
Post Reply