Flexget cookbook with Trakt, Deluge and Pushbullet


I’ve been using flexget for quite some time now, but have not shared my config-file.
Since I started to use flexget, I’ve also started to keep track of what I watch on trakt.tv, which is a wonderful service.
So when flexget know what I want to watch, and download. It fetches the appropriate torrent for one or several configured torrent-site, and passes the file to Deluge which download the file – all automatically!
I’ve also built in Pushbullet announcements when new downloads are added to Deluge.

This is my cookbook (configuration).
Flexget is then called from the crontab with: */2 * * * * /usr/bin/flexget -L verbose -c ~/.flexget/config.yml --cron execute

[sourcecode language=”bash”]
templates:
tv1:
deluge:
label: flexget_tv
ratio: 3.0
movedone: "/storage/path/{{series_name}}/Season {{series_season}}/"
automanaged: false
configure_series:
settings:
quality: 720p
propers: yes
from:
trakt_list:
username: USERNAME
password: PASSWORD
api_key: APIKEY
custom: MYCUSTOMLIST
strip_dates: yes
pushbullet:
apikey: APIKEY
title: "{{trakt_series_name}} {{trakt_season}}{{trakt_episode}}"
body: "{{title}}\n\nSize: {{content_size}}MB\n\n{{trakt_ep_overview}}"
inputs:
– rss: RSS_URL
tv2:
deluge:
label: flexget_tv
ratio: 3.0
movedone: "/storage/path/{{series_name}}/Season {{series_season}}/"
automanaged: false
content_filter:
require:
– ‘*.mkv’
configure_series:
settings:
quality: 720p
propers: yes
from:
trakt_list:
username: USERNAME
password: PASSWORD
api_key: APIKEY
custom: MYCUSTOMLIST
strip_dates: yes
content_size:
min: 400
max: 6000
strict: no
pushbullet:
apikey: APIKEY
title: "{{trakt_series_name}} {{trakt_season}}{{trakt_episode}}"
body: "{{title}}\n\nSize: {{content_size}}MB\n\n{{trakt_ep_overview}}"
inputs:
– rss: RSS_URL
– rss: RSS_URL
– rss: RSS_URL

download_all:
deluge:
#addpaused: yes
label: flexget_all
ratio: 1.0
movedone: "/storage/path/"
automanaged: false
removeatratio: yes
accept_all: yes
rss: RSS_URL

movie:
deluge:
label: flexget_movies
ratio: 2.0
movedone: "/storage/path/"
automanaged: false
movie_queue: yes
proper_movies: no
regexp:
reject:
– "msd"
– "afg"
– "line"
– "dvdr"
– "dvd-r"
content_size:
min: 1500
max: 15000
strict: no
pushbullet:
apikey: API_KEY
title: "{{imdb_name}}"
body: "{{title}}\n\n{{imdb_url}}\n\nSize: {{content_size}}MB"
inputs:
– rss: RSS_URL
– rss: RSS_URL

spec:
deluge:
label: flexget_spec
ratio: 2.0
path: "/storage/path/"
movedone: "/storage/path/"
removeatratio: no
automanaged: false
movie_queue: yes
proper_movies: no
regexp:
accept:
– "Specified Series Name 1"
– "Specified Series Name 3"
reject:
– "Specified Series Name 2"
content_size:
max: 8000
inputs:
– rss: RSS_URL

tasks:
SPEC:
template: spec
priority: 1
movie_queue: no

TV-SHOWS:
template:
– tv1
– tv2
priority: 2

IMPORT-MOVIES:
trakt_list:
username: USERNAME
password: PASSWORD
api_key: APIKEY
movies: watchlist
accept_all: yes
queue_movies:
quality: dvdrip|bluray|webdl xvid|divx|h264 720p
priority: 3

MOVIES:
template: movie
priority: 4

DOWNLOAD_ALL:
template: download_all
priority: 5
[/sourcecode]