Installing SortTv on Ubuntu 12.04

SortTv is a great little perl script for sorting, renaming and organising your media. It's easy to set-up but I did run into a few minor issues. Here are the steps to install on Ubuntu Server.

Download from:


Extract all the files.


Change into the sorttv directory.

cd sorttv

Edit the configuration file

vi sorttv.conf

Update the following settings


You may also want to edit uncomment the word "dry-run". This will allow you to see what sorttv will change before you commit to it.

Run the program


At this point I received a couple of errors for a few missing perl dependencies. You can easily fix these by installing them. TVDB::API and WWW::TheMovieDB::Search were the missing dependencies. Simply check inside for the line the error came from and then replace the package name with your missing dependency name in the below command.

sudo perl -MCPAN -e 'install TVDB::API'
sudo perl -MCPAN -e 'install WWW::TheMovieDB::Search'

Try run the program again.

Have fun watching your movies been automatically sorted and moved into place.


Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.