How can i make Ant ignore underscores etc when seaching imdb

If you need help on how to use the program
Post Reply
semel
Posts: 3
Joined: 2012-11-06 20:27:32

How can i make Ant ignore underscores etc when seaching imdb

Post by semel »

and other sites?

I get movies names from folders.
For instance
Everybodys_Fine_2009

When i try to run IMDB script it doesnt find anything at all

Is there a way to make ANt(in a script, perhaps?) ignore underscores and numbers(in my case)


Sincerely yours,
Semel
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Near the end of the IMDB script you can find this:
MovieName := StringReplace(MovieName, '&', 'and');
just add the following after or before:
MovieName := StringReplace(MovieName, '_', ' ');
For other scripts, you can do it in a similar way: do the replacement of the movie title entered between the place where it is asked to the user (Input function) and the call to a function that will analyze it.
semel
Posts: 3
Joined: 2012-11-06 20:27:32

Post by semel »

Will do. Thanx a lot ;)
Post Reply