Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- secrets: secrets.yml
- ##### webui
- #
- web_server:
- bind: 0.0.0.0
- port: 3539
- api: yes
- webui: yes
- ##### schedules
- #
- schedules:
- # Run every 1 hour between 00 and 12
- - tasks: [populate-series-db, purge-series-list, fill-series-list, download-series-rss, download-series-discover, fill-movie-queue, checkIMDBlist, download-movies-1080p, download-movies-720p, download-movies-sd, download-subtitles]
- schedule:
- hour: 00-12/1
- - tasks: [clean-movie-queue, clean-series-list, clean-transmission, update-series-list, move-movies, move-series, clean-series-list]
- interval:
- days: 1
- templates:
- global:
- no_entries_ok: yes
- pathscrub: windows
- free_space:
- path: '/{{secrets.folder.root}}'
- space: 5000
- # Requires log_filter plugin
- log_filter:
- task:
- - marked seen
- - because quality already downloaded
- - because episode has already been downloaded
- - Task does not have any
- move:
- - left because it exceeds safety value
- - does not exists (anymore)
- urlrewriter:
- - URL rewritten to
- enzyme.mkv:
- - Reading
- - Processing
- enzyme.parsers.ebml.core:
- - ignored
- - Maximum level
- subliminal.video:
- - Scanning video
- parser_internal:
- - appears to be an episode pack
- content_size:
- - rejecting
- search_rss:
- - Error
- assume_quality:
- - ""
- utils.requests:
- - Waiting
- ##### Series config
- #
- series:
- thetvdb_lookup: yes
- #include: series.yml
- configure_series:
- from:
- entry_list: trakt-series
- settings:
- identified_by: ep
- timeframe: 15 minutes
- target: hdtv 720p !h265
- quality: tvrip+ 480p+ !h265
- propers: 16 hours
- specials: no
- content_size:
- min: 150
- max: 1000
- ##### Movies config
- #
- movies-1080p:
- tmdb_lookup: yes
- movie_list: trakt-movies
- quality: 1080p webdl+ !h265
- content_size:
- min: 1000
- max: 6000
- movies-720p:
- tmdb_lookup: yes
- movie_list: trakt-movies
- quality: 720p webdl+ !h265
- content_size:
- min: 500
- max: 3000
- movies-sd:
- tmdb_lookup: yes
- movie_list: trakt-movies
- quality: xvid|divx|h264 <720p
- content_size:
- min: 500
- max: 2000
- ##### Pushbullet config
- #
- pushbullet:
- pushbullet:
- apikey: '{{secrets.pushbullet.api}}'
- title: "[Flexget] {{task}}"
- body: "{{title}}"
- ##### Common rejections
- #
- reject:
- regexp:
- reject:
- - (s|d)ub(s|bed|lado|titulado)?\b
- - \bdual\b
- - \b3d\b
- - \b(fr)(ench)?\b
- - \b(ita)(lian)?\b
- - \b(spa)(nish)?\b
- - \b(ger)(man)?\b
- - \bcastellano\b
- - \brus(sian)?\b
- content_filter:
- reject:
- - '*.rar'
- - '*.zip'
- ##### Common torrents config
- #
- torrents:
- torrent_alive:
- min_seeds: 10
- reject_for: 15 minutes
- magnets: no
- # Might need to disable if you are getting errors connecting to https sources
- # Can remove if you upgrade to python 2.7.9+ or install requests[security]
- #verify_ssl_certificates: no
- domain_delay:
- torrentz.eu: 1 seconds
- unblocked.la: 1 seconds
- nyaa.se: 1 seconds
- ##### Transmission series config
- #
- transmission:
- transmission:
- host: '{{secrets.transmission.host}}'
- port: 9091
- username: '{{secrets.transmission.user}}'
- password: '{{secrets.transmission.pass}}'
- main_file_only: yes
- include_subs: yes
- skip_files:
- - '*.nfo'
- - '*.sfv'
- - '*.txt'
- - '*[sS]ample*'
- - '*[tT]railer*'
- ##### Transmission series config
- #
- transmission-series:
- transmission:
- content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %}: - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %}: - [{{quality}}]{% endif %}"
- path: "/{{secrets.folder.root}}{{secrets.folder.downseries}}{{tvdb_series_name|default(series_name)|pathscrub}}/Season {{ series_season|pad(2)}}"
- ##### Transmission movies config
- #
- transmission-movies:
- transmission:
- content_filename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %}: - [{{quality}}]{% endif %}"
- path: "/{{secrets.folder.root}}{{secrets.folder.downmovies}}{{movie_name|pathscrub}}"
- ##### Disable builtins for some tasks
- #
- disable-seen-retry:
- disable:
- - seen
- - seen_info_hash
- - retry_failed
- ##### Series metainfo mainly for move and update tasks
- #
- series-metainfo:
- metainfo_series: yes
- thetvdb_lookup: yes
- ##### Movies metainfo mainly for move and update tasks
- #
- movies-metainfo:
- tmdb_lookup: yes
- parsing:
- movie: guessit
- tasks:
- ##### Populates the series database with the files on the library, to avoid duplicate downloads
- #
- populate-series-db:
- priority: 1
- template:
- - series-metainfo
- seen: local
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- accept_all: yes
- configure_series:
- from:
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
- retrieve: dirs
- settings:
- tracking: no
- ##### Purge the series list to allow full sync with trakt series list
- #
- purge-series-list:
- priority: 2
- template:
- - disable-seen-retry
- entry_list: trakt-series
- accept_all: yes
- list_remove:
- - entry_list: trakt-series
- ##### Fetch, format and output trakt series list to a custom entry list
- #
- fill-series-list:
- priority: 3
- template:
- - disable-seen-retry
- - series-metainfo
- trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.series}}'
- type: shows
- accept_all: yes
- set:
- title: "{{tvdb_series_name|escape|replace(''', '')}}"
- list_add:
- - entry_list: trakt-series
- ##### Download episodes from manually downloaded torrents
- #
- download-series-manual:
- priority: 4
- manual: yes
- template:
- - disable-seen-retry
- - series-metainfo
- - transmission
- - transmission-series
- - pushbullet
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.downseries}}'
- mask: '*.torrent'
- parsing:
- series: guessit
- accept_all: yes
- exec:
- on_output:
- for_accepted: rm -f "{{location}}"
- ##### Download episodes from RSS feeds
- #
- download-series-rss:
- priority: 5
- template:
- - series
- - reject
- - torrents
- - transmission
- - transmission-series
- - pushbullet
- inputs:
- - rss:
- url: http://torrentz.eu/feedA?good&q=tv
- all_entries: yes
- - rss:
- url: https://kickass.unblocked.la/tv/?rss=1
- all_entries: yes
- ##### Discover and download older episodes and pilots from recently added series, set with interval to avoid spam
- #
- download-series-discover:
- priority: 6
- template:
- - series
- - reject
- - torrents
- - transmission
- - transmission-series
- - pushbullet
- discover:
- release_estimations: ignore
- interval: 15 minutes
- what:
- - emit_series:
- from_start: yes
- from:
- - torrentz: good
- - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
- ##### Remove manually movies downloaded from the movie queue and trakt list
- #
- clean-movie-queue:
- priority: 11
- template:
- - disable-seen-retry
- - movies-metainfo
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- accept_all: yes
- list_remove:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- ##### Fill the movie queue with movies from trakt list
- #
- fill-movie-queue:
- priority: 12
- trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- type: movies
- strip_dates: yes
- #imdb_list:
- #login: '{{secrets.imdb.login}}'
- #password: '{{secrets.imdb.password}}'
- #list: '{{secrets.imdb.list}}'
- rss: http://rss.imdb.com/user/ur15183663/watchlist
- accept_all: yes
- list_add:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- ##### Fill the movie queue with movies from trakt list
- #
- checkIMDBlist:
- rss: 'http://rss.imdb.com/user/ur15183663/watchlist'
- list_add:
- - movie_list: from-imdb
- ##### Download movies manually downloaded torrents
- #
- download-movies-manual:
- priority: 15
- manual: yes
- template:
- - disable-seen-retry
- - movies-metainfo
- - transmission
- - transmission-movies
- - pushbullet
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
- mask: '*.torrent'
- accept_all: yes
- exec:
- on_output:
- for_accepted: rm -f "{{location}}"
- list_remove:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- ##### Download 1080p movies
- #
- download-movies-1080p:
- priority: 16
- template:
- - movies-1080p
- - reject
- - torrents
- - transmission
- - transmission-movies
- - pushbullet
- exists_movie:
- - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
- - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- discover:
- release_estimations: ignore
- interval: 15 minutes
- what:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- from:
- - torrentz: good
- - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
- list_queue:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- list_remove:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- ##### Download 720p movies if the movie is not recent
- #
- download-movies-720p:
- priority: 17
- template:
- - movies-720p
- - reject
- - torrents
- - transmission
- - transmission-movies
- - pushbullet
- exists_movie:
- - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
- - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- discover:
- release_estimations: ignore
- interval: 15 minutes
- what:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- from:
- - torrentz: good
- - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
- if:
- - tmdb_year > now.year - 1: reject
- list_queue:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- list_remove:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- ##### Download sd movies if the movie is not recent
- #
- download-movies-sd:
- priority: 17
- template:
- - movies-sd
- - reject
- - torrents
- - transmission
- - transmission-movies
- - pushbullet
- exists_movie:
- - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
- - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- discover:
- release_estimations: ignore
- interval: 15 minutes
- what:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- from:
- - torrentz: good
- - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
- if:
- - tmdb_year > now.year - 2: reject
- list_queue:
- - movie_list: trakt-movies
- #- movie_list: from-imdb
- list_remove:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.movies}}'
- ##### Move series from downloads folder to respective folders, along with existing subtitles and adding the files to the subtitle queue
- #
- move-series:
- priority: 21
- template:
- - disable-seen-retry
- - series-metainfo
- - pushbullet
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.downseries}}'
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- # might be needed for some series, but causes issues with "name (year)" based series, like scandal
- # parsing:
- # series: guessit
- accept_all: yes
- regexp:
- reject:
- - \btrailer\b
- - \bsample\b
- move:
- to: "/{{secrets.folder.root}}{{secrets.folder.series}}{{tvdb_series_name|escape|replace(''', '')|pathscrub}}/"
- filename: "{{tvdb_series_name|escape|replace(''', '')|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %}: - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %}: - [{{quality}}]{% endif %}"
- along:
- - srt
- - sub
- - en.srt
- - en.sub
- clean_source: 100
- subtitle_queue:
- action: add
- path: "{{output}}"
- exec:
- on_exit:
- for_accepted: find '/{{secrets.folder.root}}{{secrets.folder.downseries}}'* -type d -empty -delete
- ##### Move movies from downloads folder to the movies folder, along with possible subtitles and adding the files to the subtitle queue
- #
- move-movies:
- priority: 26
- template:
- - disable-seen-retry
- - movies-metainfo
- - pushbullet
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- accept_all: yes
- regexp:
- reject:
- - \btrailer\b
- - \bsample\b
- move:
- to: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- filename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %}: - [{{quality}}]{% endif %}"
- along:
- - srt
- - sub
- - en.srt
- - en.sub
- clean_source: 100
- subtitle_queue:
- action: add
- path: "{{output}}"
- exec:
- on_exit:
- for_accepted: find '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'* -type d -empty -delete
- ##### Download subtitles for the previously queued files
- #
- # Might have issues until final release of subliminal 2.0, see: http://discuss.flexget.com/t/subliminal-error/2023/
- download-subtitles:
- priority: 31
- template:
- - disable-seen-retry
- subtitle_queue: emit
- accept_all: yes
- subliminal:
- exact_match: yes
- languages:
- - por
- alternatives:
- - eng
- providers:
- - opensubtitles
- - addic7ed
- - podnapisi
- - thesubdb
- - tvsubtitles
- subtitle-series:
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
- regexp: '.*\.(avi|mkv|mp4)$'
- recursive: yes
- accept_all: yes
- subliminal:
- languages:
- - por
- alternatives:
- - eng
- exact_match: yes
- providers:
- - opensubtitles
- - addic7ed
- - podnapisi
- - thesubdb
- - tvsubtitles
- single: no
- subtitle-movies:
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
- regexp: '.*\.(avi|mkv|mp4)$'
- recursive: yes
- accept_all: yes
- subliminal:
- languages:
- - por
- alternatives:
- - eng
- exact_match: yes
- providers:
- - opensubtitles
- - addic7ed
- - podnapisi
- - thesubdb
- - tvsubtitles
- single: no
- ##### Clean finished torrents from transmission
- #
- clean-transmission:
- priority: 33
- disable: details
- clean_transmission:
- host: '{{secrets.transmission.host}}'
- port: 9091
- username: '{{secrets.transmission.user}}'
- password: '{{secrets.transmission.pass}}'
- finished_for: 2 hours
- ##### Update trakt series list from local series folders, excluding the ones that already ended
- #
- update-series-list:
- priority: 41
- template:
- - disable-seen-retry
- - series-metainfo
- plugin_priority:
- if: -251
- manipulate: -252
- list_add: -253
- filesystem:
- path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- manipulate:
- - series_season:
- remove: yes
- - series_episode:
- remove: yes
- accept_all: yes
- if:
- - tvdb_status == 'Ended': reject
- list_add:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.series}}'
- ##### Clean the series that already ended from trakt series list
- #
- clean-series-list:
- priority: 43
- template:
- - disable-seen-retry
- - series-metainfo
- - pushbullet
- trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.series}}'
- type: shows
- if:
- - tvdb_status == 'Ended': accept
- list_remove:
- - trakt_list:
- account: '{{secrets.trakt.account}}'
- list: '{{secrets.trakt.series}}'
Add Comment
Please, Sign In to add comment