Skip to content

Instantly share code, notes, and snippets.

@adriangoransson
Last active October 10, 2017 20:29
Show Gist options
  • Save adriangoransson/89d79db16056e0711d40695859e6d622 to your computer and use it in GitHub Desktop.
Save adriangoransson/89d79db16056e0711d40695859e6d622 to your computer and use it in GitHub Desktop.
Flexget configuration
# vim: set shiftwidth=2 softtabstop=2 expandtab:
variables: variables.yml
templates:
global:
headers:
User-Agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0"
pathscrub: windows
# Thin out the list of possible entries
regexp:
reject:
- (s|d)ub(s|bed)?\b: {from: title} # Block any subbed/dubbed/etc videos
- \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
- \b3-?D\b: {from: title} # I don't have any 3D displays
- \btrailer\b: {from: title} # I've gotten a few trailers that matched as movies. VERY annoying
- \bR5\b: {from: title} # The following are poor quality types that somehow got through the quality
- \bWEBSCR\b: {from: title} # features usually due to the title including a keyword like "720p" as well
- \bscreener\b: {from: title}
- \bTS\b: {from: title}
- \bCam\b: {from: title}
- '{C_P}': {from: title} # The following are groups with poor quality releases
- TrTd TeaM: {from: title}
- \[TNTVillage\]: {from: title}
- \[facepalm\]: {from: title}
- \bASAP\b: {from: title}
- FASTSUB: {from: title}
- VOSTFR: {from: title}
- Subtitulado: {from: title}
- \bNORDiC\b: {from: title}
- \biPad\b: {from: title}
- \b(ita|ger|fra|spa|swe|nor|nordic|fr|kor|esp|nl|pl|spanish)\b: {from: title}
- \bR6\b: {from: title}
- \bTemporada\b: {from: title}
- \bDual\b: {from: title}
- \bJapanese\b: {from: title}
- \bIMMERSE\b: {from: title} # AWFUL GROUPS
- \bOzlem\b: {from: title}
- \b0sec\b: {from: title}
- \bPSYPHER\b: {from: title}
- \bMulti\b: {from: title}
- \bJyk\b: {from: title}
- \bnItRo\b: {from: title}
- \bSPARROW\b: {from: title}
- \bDSRG\b: {from: title}
- \bETRG\b: {from: title}
- \bW4F\b: {from: title}
- \bFRENCH\b: {from: title}
- \bAAC\b: {from: title}
- \bkhatake2\b: {from: title}
- \bHEVC\b
- \bMOV\b
- \bCOMPLETE\b
- \bMULTI\b
- \bmvo\b
- \bZeus\b
- \bFLEET\b
- \bTBS\b
- \baac2
- \b2ch\b
- \bdd2\b
- \bx265\b
tv:
# Grab shows from Trakt
configure_series:
settings:
timeframe: 12 hours
target: 1080p
quality: 720p-1080p h264 !mp3 !aac
from:
trakt_list:
account: "{? trakt.account ?}"
list: "{? trakt.lists.tv ?}"
type: shows
# Look up entries against trakt
trakt_lookup: yes
# Set options for finished file in Deluge
deluge:
ratio: 2.5
removeatratio: yes
movedone: "{? movedone.tv ?}"
label: tv
main_file_only: yes
keep_subs: yes
# Send a push notification that the download is happening
notify:
entries:
title: "Dl: {{ series_name }} - {{ series_season }}x{{ series_episode|pad(2) }}"
message: "{{ trakt_ep_name|default('Unknown') }} - {{ title }}"
via:
- pushover:
user_key: "{? pushover.user ?}"
api_key: "{? pushover.api ?}"
# Add to the list of collected episodes on Trakt
list_add:
- trakt_list:
account: '{? trakt.account ?}'
list: collection
type: episodes
movies:
# Match entries in the list "movies"
list_match:
from:
- movie_list: movies
quality: 1080p h264 !mp3 !aac !webdl !webrip !cam !ts !hdrip
content_size:
min: 5000
trakt_lookup: yes
# Set options for finished file in Deluge
deluge:
ratio: 2.5
removeatratio: yes
movedone: "{? movedone.movies ?}"
label: movies
main_file_only: yes
keep_subs: yes
# Send a push notification that the download is happening
notify:
entries:
title: "Dl: {{ movie_name }} ({{ movie_year }})"
message: "{{ title }}"
via:
- pushover:
user_key: "{? pushover.user ?}"
api_key: "{? pushover.api ?}"
# Clean the movie from watchlist
list_remove:
- trakt_list:
account: "{? trakt.account ?}"
list: watchlist
type: movies
tasks:
sync_seen_from_trakt:
interval: 4 weeks
next_trakt_episodes:
account: "{? trakt.account ?}"
context: collected
list: TV
accept_all: yes
set_series_begin: yes
update_watchlist:
priority: 1
interval: 1 hours
trakt_list:
account: "{? trakt.account ?}"
list: "{? trakt.lists.movies ?}"
type: movies
accept_all: yes
seen: local # We don't want accepted movies on this feed to affect actual download feed
list_add:
- movie_list: movies
download_tv:
template: tv
inputs:
- filesystem:
path: "{? inputs.tv.watchdir ?}"
mask: "*.torrent"
- rss: "{? inputs.tv.xspeeds ?}"
download_movies:
template: movies
inputs:
- rss: "{? inputs.movies.xspeeds ?}"
filesystem_tv:
manual: yes
template: tv
inputs:
- filesystem:
path: "{? inputs.tv.watchdir ?}"
mask: "*.torrent"
filesystem_movies:
manual: yes
template: movies
inputs:
- filesystem:
path: "{? inputs.movies.watchdir ?}"
mask: "*.torrent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment