Some of you may have noticed that when a movie is found on the first attempt at imdb.com, the URL field is filled with the words used for the search: like
http://imdb.com/Title?title=Blue+Crush instead of the more correct
http://us.imdb.com/Title?0300532. Well, just replace this line in your script and you'll be fine.
original program:
Code: Select all
SetField(fieldURL, 'http://imdb.com/Title' + copy(Address, pos('?',Address), length(Address)));
modified:
Code: Select all
SetField(fieldURL, 'http://imdb.com/Title' + copy(Page.Text, pos('href="/Details?',Page.Text)+14, 8));