There is a function in IMDBFetcher.cs called RefreshIMDB() that uses the filename to build an IMDB search string. It wouldn't be too hard to change this function to parse out the directory name as search criteria instead of using the file name.Ok then
http://users.edpnet.be/darkie/movierenamer/MovieRenamer.bat
http://users.edpnet.be/darkie/movierenamer/MovieRenamer.jar
http://users.edpnet.be/darkie/movierenamer/MovieRenamer.java
You can use the bat file for easy reuse. Just put all the directories you want to scan and rename between double quotes and seperated by a space.
Put both files in the same directory(which one doesn't matter)
Directories where it finds a .info file, the application skips. This is because I create a new file with the original name but with a .info extention. So if there is ANY .info file in it, it'll be skipped. This can be important to know if you keep group release files with your extracted movies, since they are also named .info. If this is a problem, I can change it (or you can do it yourself, source is included).
Only thing you will need is a Java JRE 6.0 (maybe 5.0 also works, not sure under which one I compiled )
You'll find this JRE on this page:
Java SE Downloads
And there you take: Java Runtime Environment (JRE) 6 Update 5
Little disclaimer: I'm not reponsible for any loss of data or bad renaming.
So first test it on your system since I only tested it on mine. Because I only rename files, I can't see for any reason that something goes bad ... but it can't hurt to do a quick test
I'm going to put a quick question here:
At first MP' found only 4 movies of the 91. Now about 70, the problem is that for the remaining 21, he finds mulitple IMDB possibilities. I've checked the option that he takes one automatically ... but still he ask's manual input? Is there a fix for this? And is there a way to schedule this as well? Or a script/tool that'll do all this for me?
It looks like MP uses a sqllite db, so I can probably write something myself, but it would be easier if it already existed
I have changed my version to look for files of the form <movie name><date><crap>. The movie name and the date are used as the search criteria and the crap after the date is ignored. The only issue now is that the MP comparison function uses fuzzy logic implemented as a Levenshtein comparison routine. It compares the IMDB title to the original filename instead of the search criteria. I'm certain this is a bug and will attempt to fix. I will change the FuzzyMatch() function to skew results towards IMDB results that match the date and then use the Levenshtein comparison to only check the title.
A funny thing with MP implementation is that it will match the IMDB "aka" title, but only record the original title. The consequence is, for example, that "The Good, The Bad, and The Ugly" is recorded in the database as "Buono, il brutto, il cattivo, Il ". This is funny.
There is also an O^2 optimization problem as the directory is being scanned for each search. This makes the scan slower as the number of files increases. I don't know much about windows programming so this may be required because of threading / context issues.