Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables: variables.yml
- schedules:
- - tasks: ['populate-*', 'clean-*', 'update-*']
- schedule:
- hour: 0
- - tasks: ['fill-*', '*-rss']
- schedule:
- minute: 0,30
- - tasks: ['*-discover', '*-manual']
- schedule:
- hour: '*/2'
- - tasks: ['move-*', download-subtitles]
- schedule:
- minute: 15,45
- templates:
- anime-series:
- configure_series:
- from:
- kitsu:
- username: urothis
- lists:
- - current
- - planned
- settings:
- identified_by: sequence
- quality: 1080p
- special_ids:
- - OVA
- transmission-anchors:
- _transmission-settings: &transmission-settings
- host: "{? transmission.host ?}"
- port: 9091
- username: "{? transmission.user ?}"
- password: "{? transmission.pass ?}"
- reject:
- regexp:
- reject:
- - (s|d)ub(s|bed)?\b: {from: title} # Block any subbed/dubbed/etc videos
- - \bspanish\b: {from: title} # Spanish releases kept cropping up
- - \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
- - \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}
- - the.day.of.the.doctor # The following are titles that caused me issues from plugins
- - \b(s|d)ub(s|bed|lado|titulado)?\b
- - \bhc\b
- - \bdual\b
- - \b3d\b
- - \bfre(nch)?\b
- - \bita(lian)?\b
- - \bspa(nish)?\b
- - \bger(man)?\b
- - \bcastellano\b
- - \brus(sian)?\b
- content_filter:
- reject:
- - '*.rar'
- - '*.zip'
- anime-reject:
- regexp:
- reject:
- - \bdub\b
- - \bhard(subs|subbed)?\b
- - \bpv\b
- - \b60fps\b
- series-guessit:
- parsing:
- series: guessit
- global:
- no_entries_ok: yes
- pathscrub: windows
- free_space:
- path: "{? folder.drive ?}:/{? folder.root ?}"
- space: 5000
- ##### Common torrents config
- #
- torrents:
- torrent_alive:
- min_seeds: 1
- reject_for: 15 minutes
- magnets: yes
- # 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:
- thepiratebay.se: 10 seconds
- thepiratebay.org: 10 seconds
- limetorrents: 3 seconds
- anidex.info: 3 seconds
- ##### Transmission anime series config
- #
- transmission-anime-series:
- transmission:
- <<: *transmission-settings
- main_file_only: yes
- content_filename: "{{series_name}} - ep{{series_id}} - [{{quality}}]"
- path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}{{series_name|pathscrub}}/"
- disable-seen-retry:
- disable:
- - seen
- - seen_info_hash
- - retry_failed
- series-guessit:
- parsing:
- series: guessit
- tasks:
- ##### Discover and download anime
- #
- fill-anime-series-list:
- priority: 11
- template:
- - disable-seen-retry
- metainfo_series: yes
- list_clear:
- what:
- - entry_list: myanimelist-series
- kitsu:
- username: urothis
- lists:
- - current
- - planned
- accept_all: yes
- set:
- title: "{{myanimelist_name|re_replace('[-/:;.★](?=[a-zA-Z])', ' ')|re_replace('[:;](?![a-zA-Z])|[`´()]|TV|', '')|re_replace('Season ', 'S')|re_replace(' +', ' ')}}"
- list_add:
- - entry_list: myanimelist-series
- download-anime-manual:
- priority: 14
- template:
- - disable-seen-retry
- - series-guessit
- - transmission-anime-series
- filesystem:
- path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"
- mask: '*.torrent'
- accept_all: yes
- exec:
- on_output:
- for_accepted: rm -f "{{location}}"
- download-anime-series-discover:
- priority: 18
- template:
- - anime-series
- - anime-reject
- - torrents
- - transmission-anime-series
- metainfo_series: yes
- discover:
- release_estimations: ignore
- interval: 15 minutes
- what:
- - next_series_episodes:
- from_start: yes
- backfill: yes
- from:
- - search_rss: https://nyaa.si/?page=rss&c=1_2&q=\{{search_term}}
- - search_rss: https://anidex.info/rss/?cat=1&lang_id=1&q=\{{search_term}}
- ##### Move anime from downloads folder to respective folders
- #
- move-anime:
- priority: 42
- template:
- - disable-seen-retry
- - series-guessit
- filesystem:
- path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"
- recursive: yes
- retrieve: files
- regexp: '.*\.(avi|mkv|mp4)$'
- metainfo_series: yes
- accept_all: yes
- move:
- to: "{? folder.drive ?}:/{? folder.root ?}{? folder.anime ?}{{series_name|default(title)|pathscrub}}/"
- clean_source: 50
- exec:
- allow_background: yes
- on_exit:
- phase:
- - find "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"* -type d -empty -delete
- on_output:
- for_accepted: echo "{{location}}" >> "{? list.animerename ?}"
- download-subtitles:
- priority: 45
- template:
- - disable-seen-retry
- subtitle_list:
- list: subtitles
- list_match:
- from:
- - subtitle_list:
- list: subtitles
- subliminal:
- exact_match: yes
- languages:
- - eng
- ##### Clean finished torrents from transmission
- #
- clean-transmission:
- priority: 47
- disable: details
- clean_transmission:
- finished_for: 1 day
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement