9 account: '{?trakt.account?}'
11 base_url: '{?sonarr.url?}'
12 api_key: '{?sonarr.api?}'
14 _trakt_movie_queue: &trakt_movie_queue
15 account: '{?trakt.account?}'
17 _newznab_series_search: &newznab_series_search
18 url: '{?ds.api?}&t=tvsearch&cat=5040&extended=1'
23 - series_alternate_names
24 _newznab_movie_search: &newznab_movie_search
25 url: '{?ds.api?}&t=movie&cat=2040&extended=1'
27 _series_settings: &series_settings
29 quality: 720p-1080p webrip+ h264+
35 key: '{?sabnzbd.key?}'
36 url: '{?sabnzbd.url?}'
39 usenet_movies_rss: # {{{2
41 - rss: { url: 'https://{?ds.rss?}&t=2040&dl=1&num=100', silent: yes } # Movies HD
42 - rss: { url: 'https://{?uc.rss?}&t=2040&dl=1&num=100', silent: yes } # Movies HD
45 usenet_series_rss: # {{{2
47 - rss: { url: 'https://{?ds.rss?}&t=5040&dl=1&num=100', silent: yes } # Series HD
48 - rss: { url: 'https://{?uc.rss?}&t=5040&dl=1&num=100', silent: yes } # Series HD
64 - \b3-?D\b: {from: title}
65 - \btrailer\b: {from: title} # I've gotten a few trailers that matched as movies. VERY annoying
66 - \bR5\b: {from: title} # The following are poor quality types that somehow got through the quality
67 - \bWEBSCR\b: {from: title} # features usually due to the title including a keyword like "720p" as well
68 - \bscreener\b: {from: title}
69 - \bTS\b: {from: title}
70 - \bCam\b: {from: title}
71 - '{C_P}': {from: title} # The following are groups with poor quality releases
72 - TrTd TeaM: {from: title}
73 - \[TNTVillage\]: {from: title}
74 - \[facepalm\]: {from: title}
75 - \bASAP\b: {from: title}
76 - \b Go\): {from: title} # filter those misplaced french only movies
77 - 'nl.subs': {from: title} # no dutch subtitles
78 - 'NIXON': {from: title} # rubbish futurama releases, wrong season numbering
84 priority: '0' # normal
89 - '/mnt/series/{{tvdb_series_name}}'
90 allow_different_qualities: better
97 newznab_series_queue: # {{{2
99 api.drunkenslug.com: 5 seconds
102 # let series handle the accept
103 on_reached: do_nothing
104 target: 1080p webrip h264
107 entry_list: trakt-series-queue
111 quality: 720p-1080p webrip+ h264+
120 - next_series_episodes:
123 - newznab: *newznab_series_search
127 # this doesn't seem to override the timeframe set above
128 - Last Week Tonight with John Oliver: { timeframe: 8 hours }
129 - House of the Dragon: { timeframe: 8 hours }
130 - Anne Rice's Mayfair Witches:
135 newznab_series_backfill: # {{{2
137 api.drunkenslug.com: 5 seconds
148 quality: 720p-1080p webrip+ h264+
152 - next_sonarr_episodes:
157 - newznab: *newznab_series_search
162 alternate_name: la casa de papel
163 - the ministry of time:
165 - el ministerio del tiempo
166 - the department of time
179 allow_different_qualities: better
183 newznab_movies_queue: # {{{2
184 plugin_priority: # NOTE: currently not verified
185 est_released_movies: 200 # prefer using tmdb release date
186 est_movies_bluray: 100 # over bluray releases
190 - movie_list: trakt-movies-queue
192 - newznab: *newznab_movie_search
196 quality: 720p-1080p webrip+ h264+
200 target: 1080p webrip h264
207 - movie_list: trakt-movies-queue
210 trakt_add_collection: # {{{2
213 account: '{?trakt.account?}'
217 trakt_remove_movie_queue: # {{{2
218 # removes movie from queue and watchlist
233 - trakt_add_collection
241 regexp: { reject: ['[Ss]ample'] }
250 destination: '/mnt/series'
251 folder: "{{tvdb_series_name}}/{% if tvdb_season == 0 %}Specials{% else %}Season {{tvdb_season}}{% endif %}"
252 filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{tvdb_ep_name|replace('/','-')}} ({{tvdb_ep_air_date|formatdate('%Y')}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[{{tvdb_language}}]"
254 to: "/mnt/series/{{folder}}"
255 rename: "{{filename}}"
256 clean_source: 100 # removes dir if < [N] MB
258 extensions: [sub, srt]
261 - echo "<<<{{folder}}/{{filename}}>>>"
262 - touch "{{destination}}/{{folder}}/{{filename}}{{location|pathext}}"
268 - trakt_add_collection
274 regexp: { reject: ['[Ss]ample'] }
283 destination: '/mnt/movies'
284 filename: "{{tmdb_name}} ({{tmdb_year}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[en]"
287 rename: "{{filename}}"
288 clean_source: 100 # removes dir if < [N] MB
290 extensions: [sub, srt]
293 - echo "<<<{{filename}}>>>"
294 - touch "{{destination}}/{{filename}}{{location|pathext}}"
297 series_filesystem: # {{{2
303 regexp: '.*\.(avi|mkv|mp4|webm|m4v)$'
305 - message: "Test mode"
311 - message: "Filename:"
313 - message: "Timestamp:"
318 plugin: assume_quality
324 regexp: '.*/([^/]+)/[^/]+/(\d+)(?:x(\d+))+([^/]*?)(?:\[.*\])?\.[^.]+$'
325 format: '\1 S\2E\3\4'
331 collected_at: "{{created}}"
340 movies_filesystem: # {{{2
346 regexp: '.*\.(avi|mkv|mp4|webm|m4v)$'
352 sync_series_trakt: # {{{2
353 plugin_priority: # thetvdb_lookup before set
361 # replace title with tvdb_series_name
363 title: "{{tvdb_series_name}}"
364 series_name: "{{tvdb_series_name}}"
365 name: "{{tvdb_series_name}}"
372 # This is used by flexget.py to get the series/episode id
384 - newznab_series_queue
389 backfill-series: # {{{2
393 - newznab_series_backfill
401 - newznab_movies_queue
406 sync-watchlist-series-episodes: # {{{2
407 # get episodes from trakt watchlist and adds them to trakt queue
408 # and sets the series_begin to the given episode.
417 set_series_begin: yes
434 sync-watchlist-series: # {{{2
435 # get series from trakt watchlist and queue, and adds them to trakt queue and entry list
441 - entry_list: trakt-series-queue
452 # if series name contains special characters
453 - trakt_series_name|asciify|strip_symbols != trakt_series_name:
455 # set alternate_name with special chars removed
456 configure_series_alternate_name: "{{trakt_series_name|asciify|strip_symbols}}"
457 #FIXME doesn't work for discover, no search is emited for alternate_name
459 # Maybe that's a newznab search plugin functionality, I've patched it in there for now.
466 - entry_list: trakt-series-queue
468 sync-series-begin: # {{{2
484 set_series_begin: yes
487 sync-watchlist-movies: # {{{2
488 # get movies from trakt watchlist and adds them to flexget movie queue
492 - movie_list: trakt-movies-queue
504 - movie_list: trakt-movies-queue
512 _sync-movies-collected-trakt: # {{{2
513 # this is expensive, don't run often
518 - movie_list: movies-collected-trakt
520 account: '{?trakt.account?}'
524 - movie_list: movies-collected-trakt
529 move-series-usenet: # {{{2
535 - /srv/usenet/done/series
538 regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
541 move-series-torrents: # {{{2
550 regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
553 move-movies-usenet: # {{{2
557 - trakt_remove_movie_queue
560 - /srv/usenet/done/movies
562 regexp: '.*\.(mkv|avi|mp4)$'
565 move-movies-torrents: # {{{2
569 - trakt_remove_movie_queue
574 regexp: '.*\.(mkv|avi|mp4)$'
577 seed-series-db: # {{{2
584 # entry_list: series-trakt
594 seed-series-trakt: # {{{2
595 # can also be used to learn and seed local db
596 # since adding to trakt doesn't work that is the only usage atm
607 # currently doesn't work and times out, need to patch to send in batches
608 # - trakt_add_collection
612 seed-movies-trakt: # {{{2
613 # this will result in an error since the request is soo long
614 # but it seems that the data is still uploaded fully and updated
619 - trakt_add_collection
623 trakt-copy-list: # {{{2
633 list: series-queue-backup
639 - tasks: ['sync-watchlist-series*', 'dl-series']
642 jitter: 120 # seconds
643 - tasks: ['dl-movies']
646 jitter: 120 # seconds
647 - tasks: ['sync-watchlist-movies']
649 hours: 3 # needs to be 2h+ to avoid trakt_list cache
650 jitter: 120 # seconds
652 # vim: sts=2 ts=2 sw=2 et