FlexGet is particularly useful when it is used with applications that support the Watch Directory function (e.g. Transmission).
Here a list of FlexGet key features:
- Support many sources (RSS, HTML, CSV ...)
- Sort movies using IMDB ratings
- Download movies using IMDB or trakt.tv watchlists
- Very robust TV Shows plugin (Filter downloads by episode number, quality ...)
- Use RegEx to filter content
Installation:
sudo apt-get install python-pip
sudo pip install flexget
Configuration:
cd ~/.flexget
touch config.yml
Syntax:
tasks:
sometask:
inputplugin:
inputpluginoption1: option1
inputpluginoption2: option2
filterplugin:
- filter1:
# Indent by 4 spaces when defining options for a list item
filteroption: option
outputplugin:
outputpluginoption1: option1
outputpluginoption2: option2
As you can see in the example above, the syntax is pretty straightforward. However, you must respect the following rules:
- Tasks are the main components of the config file.
- Tasks are called sections and they must end with a colon (
tasks:
). - Everything that belongs to a section must be indented by 2 SPACES (DON'T USE TABs).
- Plugins (Input, Filter, Output) must use the same indentation level.
- Options that belong to a list item must be indented by 4 SPACES.
Configuration example:
~/Downloads
:tasks:
my task:
rss: https://www.example.com/rss
series:
- Pioneer One:
# You can specify the desired quality using the quality option
quality: 480p
- Deadside:
quality: 720p
download: ~/Downloads
To use this configuration, simply copy the aforementioned code block, then paste it into the configuration file
config.yml
that you have already created.To test you configuration, run the following command in a terminal:
flexget --test
Scheduling:
crontab
list.export EDITOR=nano
crontab -e
Now here is the funny part, to make FlexGet run in the background every hour, simply add the following line to your crontab file:
@hourly /usr/local/bin/flexget --cron
You should now have a working FlexGet configuration.
NOTE: In order to automatically download new feed entries (i.e. torrent files available through RSS) using Transmission, you need to enable the Watch Directory feature (We have already blogged about this in the previous post).
Comments