movie_rename.pl

Come up with a useful post-processing script? Share it here!
Post Reply
dgege
Newbie
Newbie
Posts: 2
Joined: October 18th, 2009, 6:58 pm

movie_rename.pl

Post by dgege »

Hi all,
I wrote a small perl script (movie_rename.pl) that scans a folder for the nfo and renames the folder according to the imdb title and year. Usage is simple, either pass it a number of folders, or call it with no arguments and it scans all folders in the current one (useful to run on your entire collection).
It can also be used with sabnzbd by using the script "rename.sh" (assuming you put movie_rename.pl in /usr/local/bin/)

It works well for me, only dependency is to have IMDB::Perl.
DarkPhalanx
Newbie
Newbie
Posts: 10
Joined: July 12th, 2009, 12:40 pm

Re: movie_rename.pl

Post by DarkPhalanx »

How do i execute this script?
dgege
Newbie
Newbie
Posts: 2
Joined: October 18th, 2009, 6:58 pm

Re: movie_rename.pl

Post by dgege »

DarkPhalanx wrote: How do i execute this script?
It's a Perl script, so you need Perl. On linux, just rename movie_rename.pl.txt to movie_rename.pl, and execute with:
perl -w ./movie_rename.pl

On Windows, you'll need something like active perl.
Post Reply