The classic way to download files using torrents is as follows:
Go to your favourite torrent site
Search for the torrent you want
Once you've found it, download the torrent file manually
Add the downloaded torrent file to your favourite torrent client
Once it has finished downloading, manually move the file to its final location. (although some torrent clients can do this step for you)
There is a better way, a fully automated way, and that is to use RSS functionality. So for example, let's say you're a Lost fan and you currently manually download each episode of Lost as and when it becomes available. Using RSS you can automate this task meaning you can get Deluge to automatically download each episode for you as and when it becomes available. And then, once it's downloaded it will automatically move the file to the location you specify. And this final location can be different for each and every series you download. And you can even get it to send you an email when it's found a new episode to download.
There is a truly excellent tool called FlexGet which can do this, and indeed much more. However, FlexGet can be a little tricky to get up and running and so I've explained how I did it below:
IMPORTANT: Downloading TV shows and the like from the internet can have questionable legality in many countries. So, if you're not familiar with the particular law in your part of the world then let you conscience be your guide as to what you do and do not download!
NOTE: These instructions have been written for Maverick Meerkat 10.10, Lucid Lynx 10.04 and Karmic Koala 9.10 and rely on Deluge being installed.
First off we need to install a python setup tool called easy_install. So type or paste the following two commands into a Putty session or directly into the command line of your Ubuntu installation:
sudo apt-get update
sudo apt-get install python-setuptools
We now want to download and install FlexGet itself. So, create a temporary download location and switch into it:
mkdir tmp
cd tmp
Next download FlexGet by typing or pasting the following command:
wget http://download.flexget.com/unstable/FlexGet-1.0r2336-py2.6.egg
NOTE: At the time of writing the latest version of FlexGet is called FlexGet-1.0r2336-py2.6.egg. Go to the FlexGet download location to determine the latest version to download and replace FlexGet-1.0r2336-py2.6.egg in the above string with the latest version. Please note that you are only interested in versions with py2.6 in the filename and those ending .egg.
Now let's install FlexGet:
sudo easy_install FlexGet-1.0r2336-py2.6.egg
Obviously you should replace FlexGet-1.0r2336-py2.6.egg with whatever the latest version is called.
Next, switch back out of the temporary download location and then delete this folder and the file within it as we no longer need it:
cd ..
rm -r tmp
Often scripts and applications are run as the default Ubuntu User. However, the recommendation with FlexGet is to run FlexGet using the "deluge" user. The deluge user is the username the Deluge daemon runs under (assuming of course that you've install Deluge following my guide). If we don't do so then we will hit permission problems since the two parts of the setup (Deluge and FlexGet) will be creating files and folders using different usernames and thus will be using different file/folder permissions.
So we first need to create the working area which FlexGet will use:
sudo -u deluge mkdir /var/lib/deluge/.flexget
Next we need to add the deluge user as a valid user for the deluge API. So:
sudo -u deluge vim /var/lib/deluge/.config/deluge/auth
This will open a file called auth which lives in the /var/lib/deluge/.config/deluge folder.
There is already one line in this file but we need to insert an extra line. So press the [Insert] key once (to go into "edit" mode) and insert a new blank line. Next type or paste the following string into this new blank line:
deluge:deluge:10
Now press the [Esc] key once and type the following:
:wq
This should save your changes and bring you back to the command line. If you make a mistake editing the file then issue :q! instead of :wq to abort your changes.
Now we have FlexGet installed we need to configure it to suit our needs. See the Configure FlexGet guide.
Still stuck? Now what you were looking for? Then head over to the Discussion Forum!