FlexGet
This guide will help you install the Flexget RSS torrent downloader to automate downloading torrents from an RSS feed according to filters you set.
This guide assumes you have installed a torrent client such as Transmission, and have configured a watch-dir for it to automatically download torrents placed inside.
FlexGet Installation and Configuration
pacman -Sy flexget python2-dateutil
mkdir ~/.flexget/
nano ~/.flexget/config.yml
Example configuration file
feeds:
tv-shows:
rss: Here_goes_the_rss_feed_url
series:
- list
- of
- items
- to
- download
download: ~/path/to/Torrents/
You should point the "download: ~/path/to/Torrents/" path to where you want to save your torrents or where your transmission client is watching for torrents.
For more configuration options look here.
Make FlexGet run periodically
export EDITOR=nano
which flexget #note the path
crontab -e
Paste this at the end of the file to run hourly:
@hourly /usr/bin/flexget --cron #the path you got previously should match this one
To run flexget every 30 minutes or every interval you specify
*/30 * * * * /usr/bin/flexget --cron
You should be set up, no need to make FlexGet run on startup, it runs every set amount of time.
Better Download Organizing
So, you used the watch-dir option and got a directory full of lots and lots of files, but it turns out that we are mid-season.
We start by running:
pacman -Sy pytransmissionrpc
which installs the transmissionrpc library.
We then need to alter config.yml:
If you followed my guide above, yours looks like this:
feeds:
tv-shows:
rss: Here_goes_the_rss_feed_url
series:
- list
- of
- items
- to
- download
download: ~/path/to/Torrents/
We want it to look like this:
feeds:
tv-shows:
rss: Here_goes_the_rss_feed_url
series:
- list
- of
- items
- to
- download
transmission:
host: localhost
port: 9091
path: /path/to/where/you/want/your/Series/%(series_name)s/
The option %(series_name)s forces the accepted files to be downloaded according to what the series entry is called, for example "/path/to/where/you/want/your/Series/list/list.S01.E03.avi" and creates the folder if it does not exist.
Important: The way the parser works, the "s" from series must be vertically aligned with the "t" from transmission and the command or option underneath must begin at the third letter of the entry above, notice where the "-" are.
If you have rpc-authentication-required enabled in Transmission, you can add a "username:" and a "password:" option as follows:
transmission:
host: localhost
port: 9091
username: myusername
password: mypassword
Change "myusername" and "mypassword" accordingly.
Even more information is available in the FlexGet Cookbook.