iMDB Mass Import with title cleaning and selection
Posted: 2004-09-08 22:53:58
Hi,
I've modified the latest iMDB mass import script to do preprocessing of title names (e.g. Some.Movie.2004.DVDRip.DivX-XYZ -> Some Movie 2004) aswell as selecting the proper match via a PickTree if more than one match are found. Inside the pick tree the currently processed title is also shown for reference.
I used this today to import ~150 movies stored in release-type folders by exporting the list from a disc catalog and running the script over it.
Btw. Ant is _really_ missing some mass-file import funtion to import divx stored on DVD-R. Or did I miss this function? I'm using 3.5.0 alpha/d7.
Btw. if you wanna use the script with pre 3.5.0 make sure to change the iMDB Rating extraction back to IntToStr(Round(...)) from current FloatToStr(...).
Now I just see there is no option to attach files in this forum, is there some place to put user contributed script in case others want to benefit from them?
Just curious, the object pascal script language doesn't by change support regular expressions to to quick and dirty pattern extraction and matching, that would be really handy for this kind of tasks. All import script could be written in a fraction of time/lines of code using something as flexible as perl.
Edit:
Just found http://regexpstudio.com/, TRegExpr library. As I have never worked with delphi (only C/C++, Perl, PHP etc.), would it be possible to make use of such lib from inside the scripting engine?
Best Regards,
Atmosfear
I've modified the latest iMDB mass import script to do preprocessing of title names (e.g. Some.Movie.2004.DVDRip.DivX-XYZ -> Some Movie 2004) aswell as selecting the proper match via a PickTree if more than one match are found. Inside the pick tree the currently processed title is also shown for reference.
I used this today to import ~150 movies stored in release-type folders by exporting the list from a disc catalog and running the script over it.
Btw. Ant is _really_ missing some mass-file import funtion to import divx stored on DVD-R. Or did I miss this function? I'm using 3.5.0 alpha/d7.
Btw. if you wanna use the script with pre 3.5.0 make sure to change the iMDB Rating extraction back to IntToStr(Round(...)) from current FloatToStr(...).
Now I just see there is no option to attach files in this forum, is there some place to put user contributed script in case others want to benefit from them?
Just curious, the object pascal script language doesn't by change support regular expressions to to quick and dirty pattern extraction and matching, that would be really handy for this kind of tasks. All import script could be written in a fraction of time/lines of code using something as flexible as perl.
Edit:
Just found http://regexpstudio.com/, TRegExpr library. As I have never worked with delphi (only C/C++, Perl, PHP etc.), would it be possible to make use of such lib from inside the scripting engine?
Best Regards,
Atmosfear