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
83 priority: '0' # normal
88 - '/mnt/series/{{tvdb_series_name}}'
89 allow_different_qualities: better
96 newznab_series_queue: # {{{2
98 api.drunkenslug.com: 5 seconds
101 # let series handle the accept
102 on_reached: do_nothing
103 target: 1080p webrip h264
106 entry_list: trakt-series-queue
110 quality: 720p-1080p webrip+ h264+
119 - next_series_episodes:
122 - newznab: *newznab_series_search
126 # this doesn't seem to override the timeframe set above
127 - Last Week Tonight with John Oliver: { timeframe: 8 hours }
128 - House of the Dragon: { timeframe: 8 hours }
129 - Anne Rice's Mayfair Witches:
134 newznab_series_backfill: # {{{2
136 api.drunkenslug.com: 5 seconds
147 quality: 720p-1080p webrip+ h264+
151 - next_sonarr_episodes:
156 - newznab: *newznab_series_search
161 alternate_name: la casa de papel
162 - the ministry of time:
164 - el ministerio del tiempo
165 - the department of time
178 allow_different_qualities: better
182 newznab_movies_queue: # {{{2
183 plugin_priority: # NOTE: currently not verified
184 est_released_movies: 200 # prefer using tmdb release date
185 est_movies_bluray: 100 # over bluray releases
189 - movie_list: trakt-movies-queue
191 - newznab: *newznab_movie_search
195 quality: 720p-1080p webrip+ h264+
199 target: 1080p webrip h264
206 - movie_list: trakt-movies-queue
209 trakt_add_collection: # {{{2
212 account: '{?trakt.account?}'
216 trakt_remove_movie_queue: # {{{2
217 # removes movie from queue and watchlist
232 - trakt_add_collection
240 regexp: { reject: ['[Ss]ample'] }
249 destination: '/mnt/series'
250 folder: "{{tvdb_series_name}}/{% if tvdb_season == 0 %}Specials{% else %}Season {{tvdb_season}}{% endif %}"
251 filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{tvdb_ep_name|replace('/','-')}} ({{tvdb_ep_air_date|formatdate('%Y')}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[{{tvdb_language}}]"
253 to: "/mnt/series/{{folder}}"
254 rename: "{{filename}}"
255 clean_source: 100 # removes dir if < [N] MB
257 extensions: [sub, srt]
260 - echo "<<<{{folder}}/{{filename}}>>>"
261 - touch "{{destination}}/{{folder}}/{{filename}}{{location|pathext}}"
267 - trakt_add_collection
273 regexp: { reject: ['[Ss]ample'] }
282 destination: '/mnt/movies'
283 filename: "{{tmdb_name}} ({{tmdb_year}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[en]"
286 rename: "{{filename}}"
287 clean_source: 100 # removes dir if < [N] MB
289 extensions: [sub, srt]
292 - echo "<<<{{filename}}>>>"
293 - touch "{{destination}}/{{filename}}{{location|pathext}}"
296 series_filesystem: # {{{2
302 regexp: '.*\.(avi|mkv|mp4|webm|m4v)$'
304 - message: "Test mode"
310 - message: "Filename:"
312 - message: "Timestamp:"
317 plugin: assume_quality
323 regexp: '.*/([^/]+)/[^/]+/(\d+)(?:x(\d+))+([^/]*?)(?:\[.*\])?\.[^.]+$'
324 format: '\1 S\2E\3\4'
330 collected_at: "{{created}}"
339 movies_filesystem: # {{{2
345 regexp: '.*\.(avi|mkv|mp4|webm|m4v)$'
351 sync_series_trakt: # {{{2
352 plugin_priority: # thetvdb_lookup before set
360 # replace title with tvdb_series_name
362 title: "{{tvdb_series_name}}"
363 series_name: "{{tvdb_series_name}}"
364 name: "{{tvdb_series_name}}"
371 # This is used by flexget.py to get the series/episode id
383 - newznab_series_queue
388 backfill-series: # {{{2
392 - newznab_series_backfill
400 - newznab_movies_queue
405 sync-watchlist-series-episodes: # {{{2
406 # get episodes from trakt watchlist and adds them to trakt queue
407 # and sets the series_begin to the given episode.
416 set_series_begin: yes
433 sync-watchlist-series: # {{{2
434 # get series from trakt watchlist and queue, and adds them to trakt queue and entry list
440 - entry_list: trakt-series-queue
451 # if series name contains special characters
452 - trakt_series_name|asciify|strip_symbols != trakt_series_name:
454 # set alternate_name with special chars removed
455 configure_series_alternate_name: "{{trakt_series_name|asciify|strip_symbols}}"
456 #FIXME doesn't work for discover, no search is emited for alternate_name
458 # Maybe that's a newznab search plugin functionality, I've patched it in there for now.
465 - entry_list: trakt-series-queue
467 sync-series-begin: # {{{2
483 set_series_begin: yes
486 sync-watchlist-movies: # {{{2
487 # get movies from trakt watchlist and adds them to flexget movie queue
491 - movie_list: trakt-movies-queue
503 - movie_list: trakt-movies-queue
511 _sync-movies-collected-trakt: # {{{2
512 # this is expensive, don't run often
517 - movie_list: movies-collected-trakt
519 account: '{?trakt.account?}'
523 - movie_list: movies-collected-trakt
528 move-series-usenet: # {{{2
534 - /srv/usenet/done/series
537 regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
540 move-series-torrents: # {{{2
549 regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
552 move-movies-usenet: # {{{2
556 - trakt_remove_movie_queue
559 - /srv/usenet/done/movies
561 regexp: '.*\.(mkv|avi|mp4)$'
564 move-movies-torrents: # {{{2
568 - trakt_remove_movie_queue
573 regexp: '.*\.(mkv|avi|mp4)$'
576 seed-series-db: # {{{2
583 # entry_list: series-trakt
593 seed-series-trakt: # {{{2
594 # can also be used to learn and seed local db
595 # since adding to trakt doesn't work that is the only usage atm
606 # currently doesn't work and times out, need to patch to send in batches
607 # - trakt_add_collection
611 seed-movies-trakt: # {{{2
612 # this will result in an error since the request is soo long
613 # but it seems that the data is still uploaded fully and updated
618 - trakt_add_collection
622 trakt-copy-list: # {{{2
632 list: series-queue-backup
638 - tasks: ['sync-watchlist-series*', 'dl-*']
641 jitter: 120 # seconds
642 - tasks: ['sync-watchlist-movies']
644 hours: 3 # needs to be 2h+ to avoid trakt_list cache
645 jitter: 120 # seconds
647 # vim: sts=2 ts=2 sw=2 et