Guide: Transmission-CLI and RSS

I really like Transmission-CLI for torrents, however it is lacking many features I used with uTorrent. One of them is downloading torrents automatically from an RSS feed. My reason for this is that I love Top Gear. But I don’t have BBC America (or a TV) so my only alternative is downloading it. But I don’t want to have to manually find the latest episode and then wait for it to download. This is a short how-to to get a simple RSS system set up using transmission-cli.


  • transmission-cli set up and running on your computer (on debian systems it’s as simple as “apt-get install transmission-cli”)

Step 1: Find your torrent feeds

I use showRSS. showRSS is great simply because it is easy to join and easy to create a custom feed of your favorite television shows. I have a feed listing any new episodes from Top Gear, Lost, Flight of the Conchords and Law & Order.

An alternative was posted as a comment on the showRSS blog and sounds like a good idea:

Just go to and do a search for the show you want. You’ll see an orange RSS feed button. You can copy the url from the button and paste it right into a Miro (Sidebar -> Add Feed). THe only hard part is you’ll want to narrow down the search first at Mininova, so you don’t get all sorts of crap. For example, eztv seems to be a big distributor, so you could try searching “true blood eztv” and you see a nice list gets narrowed down. If you only want the smaller files and not the 720p ones, you can refine it further with “true blood eztv -720p”. Now just right click the rss button and copy the url. Add a new feed to miro with this url, and you’re set! Sometimes you have to play around a bit in mininova to get a clean search for just the shows you want. Looking in the right column can help to see which shows have lots of seeds. Eztv is a good one to try by default but won’t be for every show.

Step 2: Install FlexGet

FlexGet will automatically download from your feed into a specified directory. The install instructions are very easy and straightforward. My configuration file is very simple:

    download: /new_torrents/

This step is in the install instructions for FlexGet but I’ll include it here since it’s important.

We want FlexGet to run at a particular interval – hourly in my case. So I type in the command

$ sudo crontab -e

Then add this line to your crontab config file:

@hourly ~/flexget/ -q

Now you have FlexGet checking your feed every hour and downloading new torrents to your download folder.

Step 3: Tell transmission to download the new torrents

Update 22 January 2010: The new version (1.80) of transmission-daemon supports watch directories natively – see this post for more details! This step is probably unnecessary.

Transmission-cli does not currently support watch folders. So we need a script to do the same thing. This is actually a very easy step. There is already a script on transmission’s website for this purpose. I did, however, have to tweak it for it to work on the newer version of transmission-cli.

Create a file called It can be anywhere, but I put mine in my FlexGet directory. Next, paste this code into the file:


# Watch dir, may contain spaces:

# move file to a subdirectory? if Commented out, it'll removed remove
# the torrent file.
# Note: Don't put a '/' before the path!

# Authentication "username:password":

# Transmission host "ip:port":

# Verbose?

time=$(date "+%Y-%m-%d (%H:%M:%S)")
if [ -n "$tr_auth" ]; then
tr_auth="-n $tr_auth"

for file in "$watchdir"*.torrent
if [ -f "$file" ]; then
if [ -n "$verbose" ]; then echo "$time: $file added to queue."; fi

/usr/bin/transmission-remote "$tr_host" "$tr_auth" –a "$file" > /dev/null

# give the remote some time to process
sleep 5

if [ $movesubdir ]; then
if [ -d "$watchdir$movesubdir" ]; then
mv "$file" "$watchdir$movesubdir"
mkdir "$watchdir$movesubdir"
mv "$file" "$watchdir$movesubdir"
rm "$file"
if [ -n "$verbose" ]; then echo "$time: No torrent in $watchdir."; fi

exit 0<

Next we need to make it executable:

$ sudo chmod +x

This should work. Just change the watchdir variable to the directory that FlexGet downloads your torrents to. If you have authentication set up for your transmission-daemon then be sure to plug your credentials into this script as well.

Finally we add another entry to crontab:

@hourly ~/flexget/

Make sure this entry has the correct path to your script.


You should now have a working automatic TV downloading system. If you have any questions feel free to ask.

Update 16 October 2009: I’ve set this up again on a new install of Ubuntu using the latest versions of flexget, python, and transmission-cli available through aptitude and it still works well with the following exception: for some reason transmission-remote is not authenticating with the tr_auth variable. Instead I hardcoded my username:password into the /usr/bin/transmission-remote command and it works. I’ll update this if I figure out what’s wrong with using the tr_auth variable.

The new lines are modified to the following:

# Authentication "username:password":

#if [ -n "$tr_auth" ]; then
#tr_auth="-n $tr_auth"

/usr/bin/transmission-remote "$tr_host" -n username:password –a "$file" &gt; /dev/null


Leave a comment

Your email address will not be published. Required fields are marked *