Skip to content

Instantly share code, notes, and snippets.

@mandusm
Created April 26, 2016 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandusm/5448c247e7b2d5c2860c095ccd4fa6f9 to your computer and use it in GitHub Desktop.
Save mandusm/5448c247e7b2d5c2860c095ccd4fa6f9 to your computer and use it in GitHub Desktop.
FlexGet Trakt
templates:
# This is just in a template so that it can easily be re-used in multiple tasks (for example in an rss based and discover based task)
# If you only have one task using your series config, you can place the configure_series plugin directly in that task rather than in a template
tv:
# This section will connect to rtorrent directly to submit downloaded URL's
rtorrent:
uri: http://127.0.0.1:80/RPC2
path: /your/torrent/download/path # Download Path of rtorrent
download: yes
configure_series:
settings:
# Configure all the series options to your taste
quality: <720p h264 hdtv # Download only HDTV < 720p in 264 codec
# path: /my/shows/{{series_name}}/Season {{series_season}}/ # This will sort your downloads if you are using one of the output plugins which supports it
path: /your/path # Download path for .torrent files
from:
trakt_list:
username: youraccount
account: youraccount # You need to AUTH the account using the flexget CLI as described here: http://flexget.com/wiki/Plugins/trakt
list: TV Shows
type: shows
tasks:
# This task will look for episodes you have added to your `My TV Shows` list at trakt.
# It will set the `begin` series option for that show, then remove the episode and re-add it to your `My TV Shows` list as a show.
follow show from ep:
seen: local
trakt_list:
username: youraccount
account: youraccount
list: TV Shows
type: episodes
accept_all: yes
set_series_begin: yes
list_remove:
- trakt_list:
username: youraccount
account: youraccount
list: TV Shows
list_add:
- trakt_list:
username: youraccount
account: youraccount
list: TV Shows
type: shows
# This task is what will actually download your shows.
# See http://flexget.com/wiki/Cookbook/Series/Search for a more detailed explanation of how this search based task works, as well as an example of how to use your `tv` template on an rss based task alongside.
get shows:
# If this is your only task getting shows, you can just include the configure_series plugin here instead of using the template.
template: tv
discover:
interval: 30 minutes
what:
- emit_series: yes
from:
- piratebay: yes # Pick a search plugin(s) http://flexget.com/wiki/Searches
- kat:
verified: yes
# Also add an appropriate output plugin here (perhaps `transmission` or `deluge` if you are using those clients.) http://flexget.com/wiki/Plugins#Output
eztv_feed:
rss: https://eztv.ag/ezrss.xml
template: [tv]
showrss_feed:
rss: http://showrss.info/feeds/all.rss
template: [tv]
# If you are using daemon mode, make sure you schedule the tasks in the right order, so that the begin episode gets set before it tries to download your shows
schedules:
- tasks: [follow show from ep, showrss_feed, eztv_feed, get shows]
interval:
minutes: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment