A month or so ago, I was trying to figure out how to use eztv’s rss feed to automatically download new torrents to my pi. That’s when I ran across the awesome python program called flexget. (link here)With this you can specify the shows you like, and it will check for new episodes and add them to your torrent client for download. It does a lot more then this,but this is the main way I use it at the moment. So here’s some instructions on how I got it up and running on my raspberry pi First you will need python 2.7 or later and pip (a package manager for python apps). I also use transmission as the torrent client, but there are others you can use
Once python is installed and working, install flexget with pip
Next, you need to set up the config file for flexget. Create a folder called
.flexgetin your home directory, then create a file called
config.yml(yes yml, not xml) in that folder. This is the file that flexget will read by default when you run the command.
Open up the config file in your fav editor, and you can use the contents of mine as an example, or check out the flexget wiki for other ‘recipes’ and examples:)
And here is the contents of my config.yml. Just need to set the quality you prefer, the path where you want them downloaded (mine is to my external hard drive) and your tranmission (or deluge) configuration (flexget can only hook into these two torrent programs at the moment)
As I use transmission as my torrent client, I can hook straight into it with flexget. The only downfall is the rpc password for transmission is in plain text in the config file.
Anyways, now let’s run flexget for the first time (just as normal user). This will output if its succesfully added movies/tv shows to your torrent program, or it will check and output any errors in syntax in your config file (spacing has to be correct)
Now that we know it’s working, add an entry into cron to run the command every hour
and add this line at the bottom
Now you will never have to check for a new torrent manually again, just make the changes to
config.yml to add/remove shows movies you like!
Hope this is useful
So I got this working a while ago, but forgot to add it to this post! I added the functionality so, after a torrent is completed, it will send you a pushbullet notification to your mobile (or where ever you want!)
- So first you will need to sign up to pushbullet to get an access token (API key). Once logged in, click o the little pciture of you up the top right and go to “Account settings”. This page will list your access token for use later on
- Next, intall it and login to it on your mobile. This will create a device in your account, and assign it a device id, for use in the script
- Now lets find out the device id, run this command and save the device ID for your device
Now lets create a new script,
This is what your script should look like:
Now we need to setup transmission to run this script on finishing a torrent
and modify this line to be:
All done! Now, not only will all your torrents automatically download, you will be notified of them when they complete!