+
+ movies_filesystem: # {{{2
+ filesystem:
+ path:
+ - '/mnt/movies'
+ recursive: yes
+ retrieve: files
+ regexp: '.*\.(avi|mkv|mp4|webm|m4v)$'
+ tmdb_lookup: true
+ require_field:
+ - tmdb_id
+
+
+ sync_series_trakt: # {{{2
+ plugin_priority: # thetvdb_lookup before set
+ thetvdb_lookup: 110
+ set: 100
+ all_series:
+ parse_only: yes
+ # lookup tvdb info
+ thetvdb_lookup: yes
+ no_entries_ok: yes
+ # replace title with tvdb_series_name
+ set:
+ title: "{{tvdb_series_name}}"
+ series_name: "{{tvdb_series_name}}"
+ name: "{{tvdb_series_name}}"
+ accept_all: yes
+ disable: seen
+
+
+tasks: # {{{1
+ parse-series: # {{{2
+ # This is used by flexget.py to get the series/episode id
+ manual: yes
+ all_series:
+ parse_only: yes
+ accept_all: yes
+ disable: [seen]
+
+
+ dl-series: # {{{2
+ priority: 100
+ template:
+ - series
+ - newznab_series_queue
+ - filters
+ - usenet
+
+
+ backfill-series: # {{{2
+ priority: 110
+ template:
+ - series
+ - newznab_series_backfill
+ - filters
+ - usenet
+
+ dl-movies: # {{{2
+ priority: 100
+ template:
+ - movies
+ - newznab_movies_queue
+ - filters
+ - usenet
+
+
+ sync-watchlist-series-episodes: # {{{2
+ # get episodes from trakt watchlist and adds them to trakt queue
+ # and sets the series_begin to the given episode.
+ priority: 1
+ disable: seen
+ template:
+ - sync_series_trakt
+ trakt_list:
+ <<: *trakt
+ list: watchlist
+ type: episodes
+ set_series_begin: yes
+ list_remove:
+ - trakt_list:
+ <<: *trakt
+ list: watchlist
+ type: episodes
+ list_add:
+ - trakt_list:
+ <<: *trakt
+ list: series-queue
+ type: shows
+ - trakt_list:
+ <<: *trakt
+ list: watchlist
+ type: shows
+
+
+ sync-watchlist-series: # {{{2
+ # get series from trakt watchlist and queue, and adds them to trakt queue and entry list
+ priority: 2
+ template:
+ - sync_series_trakt
+ list_clear:
+ what:
+ - entry_list: trakt-series-queue
+ inputs:
+ - trakt_list:
+ <<: *trakt
+ list: watchlist
+ type: shows
+ - trakt_list:
+ <<: *trakt
+ list: series-queue
+ type: shows
+ if:
+ # if series name contains special characters
+ - trakt_series_name|asciify|strip_symbols != trakt_series_name:
+ set:
+ # set alternate_name with special chars removed
+ configure_series_alternate_name: "{{trakt_series_name|asciify|strip_symbols}}"
+ #FIXME doesn't work for discover, no search is emited for alternate_name
+ # worth a patch?
+ # Maybe that's a newznab search plugin functionality, I've patched it in there for now.
+ disable: seen
+ list_add:
+ - trakt_list:
+ <<: *trakt
+ list: series-queue
+ type: shows
+ - entry_list: trakt-series-queue
+
+ sync-series-begin: # {{{2
+ priority: 3
+ disable: seen
+ template:
+ - sync_series_trakt
+ configure_series:
+ from:
+ filesystem:
+ path:
+ - '/mnt/series'
+ retrieve: dirs
+ next_trakt_episodes:
+ <<: *trakt
+ list: collection
+ context: collected
+ accept_all: yes
+ set_series_begin: yes
+
+
+ sync-watchlist-movies: # {{{2
+ # get movies from trakt watchlist and adds them to flexget movie queue
+ priority: 1
+ list_clear:
+ what:
+ - movie_list: trakt-movies-queue
+ inputs:
+ - trakt_list:
+ <<: *trakt
+ list: watchlist
+ type: movies
+ - trakt_list:
+ <<: *trakt
+ list: movies-queue
+ type: movies
+ accept_all: yes
+ list_add:
+ - movie_list: trakt-movies-queue
+ - trakt_list:
+ <<: *trakt
+ list: movies-queue
+ type: movies
+ disable: [seen]
+
+
+ _sync-movies-collected-trakt: # {{{2
+ # this is expensive, don't run often
+ manual: yes
+ priority: 1
+ list_clear:
+ what:
+ - movie_list: movies-collected-trakt
+ trakt_list:
+ account: '{?trakt.account?}'
+ list: collection
+ type: movies
+ list_add:
+ - movie_list: movies-collected-trakt
+ accept_all: yes
+ disable: [seen]
+
+
+ move-series-usenet: # {{{2
+ manual: yes
+ template:
+ - move_series
+ filesystem:
+ path:
+ - /srv/usenet/done/series
+ recursive: yes
+ retrieve: files
+ regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
+
+
+ move-series-torrents: # {{{2
+ manual: yes
+ template:
+ - move_series
+ filesystem:
+ path:
+ - /srv/torrents/done
+ recursive: yes
+ retrieve: files
+ regexp: '.*\.(avi|mkv|mp4|mpg|divx|webm|flv)$'
+
+
+ move-movies-usenet: # {{{2
+ manual: yes
+ template:
+ - move_movies
+ - trakt_remove_movie_queue
+ filesystem:
+ path:
+ - /srv/usenet/done/movies
+ recursive: yes
+ regexp: '.*\.(mkv|avi|mp4)$'
+
+
+ move-movies-torrents: # {{{2
+ manual: yes
+ template:
+ - move_movies
+ - trakt_remove_movie_queue
+ filesystem:
+ path:
+ - /srv/torrents/done
+ recursive: yes
+ regexp: '.*\.(mkv|avi|mp4)$'
+
+
+ seed-series-db: # {{{2
+ manual: yes
+ seen: local
+ template:
+ - series_filesystem
+ configure_series:
+ from:
+ # entry_list: series-trakt
+ sonarr_list:
+ <<: *sonarr
+ only_monitored: yes
+ settings:
+ # tracking: no
+ identified_by: ep
+ accept_all: yes
+
+
+ seed-series-trakt: # {{{2
+ # can also be used to learn and seed local db
+ # since adding to trakt doesn't work that is the only usage atm
+ manual: yes
+ seen: local
+ configure_series:
+ from:
+ filesystem:
+ path:
+ - '/mnt/series'
+ retrieve: dirs
+ template:
+ - series_filesystem
+ # currently doesn't work and times out, need to patch to send in batches
+ # - trakt_add_collection
+ accept_all: yes
+
+
+ seed-movies-trakt: # {{{2
+ # this will result in an error since the request is soo long
+ # but it seems that the data is still uploaded fully and updated
+ manual: yes
+ seen: local
+ template:
+ - movies_filesystem
+ - trakt_add_collection
+ accept_all: yes
+
+
+ trakt-copy-list: # {{{2
+ manual: yes
+ trakt_list:
+ <<: *trakt
+ list: series-queue
+ type: shows
+ accept_all: yes
+ list_add:
+ - trakt_list:
+ <<: *trakt
+ list: series-queue-backup
+ type: shows
+
+
+