improvement: IMDB.com good URL script

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
joazito

improvement: IMDB.com good URL script

Post by joazito »

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));
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Ok, thanks
joazito
Posts: 13
Joined: 2003-02-09 10:28:28
Location: Setubal, Portugal
Contact:

Post by joazito »

Ok this way is better... works 100% of the time.

Code: Select all

SetField(fieldURL, 'http://imdb.com/Title' + copy(Page.Text, pos('href="/Title?',Page.Text)+12, 8));
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

thanks :)
Post Reply