Guest User

Untitled

a guest
Nov 6th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. variables: variables.yml
  2.  
  3. schedules:
  4. - tasks: ['populate-*', 'clean-*', 'update-*']
  5. schedule:
  6. hour: 0
  7. - tasks: ['fill-*', '*-rss']
  8. schedule:
  9. minute: 0,30
  10. - tasks: ['*-discover', '*-manual']
  11. schedule:
  12. hour: '*/2'
  13. - tasks: ['move-*', download-subtitles]
  14. schedule:
  15. minute: 15,45
  16.  
  17. templates:
  18. anime-series:
  19. configure_series:
  20. from:
  21. entry_list: kitsu-seriesit
  22. settings:
  23. identified_by: sequence
  24. quality: 1080p
  25. special_ids:
  26. - OVA
  27.  
  28. transmission-anchors:
  29. _transmission-settings: &transmission-settings
  30. host: "{? transmission.host ?}"
  31. port: 9091
  32. username: "{? transmission.user ?}"
  33. password: "{? transmission.pass ?}"
  34.  
  35. reject:
  36. regexp:
  37. reject:
  38. - (s|d)ub(s|bed)?\b: {from: title} # Block any subbed/dubbed/etc videos
  39. - \bspanish\b: {from: title} # Spanish releases kept cropping up
  40. - \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
  41. - \btrailer\b: {from: title} # I've gotten a few trailers that matched as movies. VERY annoying
  42. - \bR5\b: {from: title} # The following are poor quality types that somehow got through the quality
  43. - \bWEBSCR\b: {from: title} # features usually due to the title including a keyword like "720p" as well
  44. - \bscreener\b: {from: title}
  45. - \bTS\b: {from: title}
  46. - \bCam\b: {from: title}
  47. - '{C_P}': {from: title} # The following are groups with poor quality releases
  48. - TrTd TeaM: {from: title}
  49. - \[TNTVillage\]: {from: title}
  50. - \[facepalm\]: {from: title}
  51. - \bASAP\b: {from: title}
  52. - the.day.of.the.doctor # The following are titles that caused me issues from plugins
  53. - \b(s|d)ub(s|bed|lado|titulado)?\b
  54. - \bhc\b
  55. - \bdual\b
  56. - \b3d\b
  57. - \bfre(nch)?\b
  58. - \bita(lian)?\b
  59. - \bspa(nish)?\b
  60. - \bger(man)?\b
  61. - \bcastellano\b
  62. - \brus(sian)?\b
  63. content_filter:
  64. reject:
  65. - '*.rar'
  66. - '*.zip'
  67.  
  68. anime-reject:
  69. regexp:
  70. reject:
  71. - \bdub\b
  72. - \bhard(subs|subbed)?\b
  73. - \bpv\b
  74. - \b60fps\b
  75.  
  76. series-guessit:
  77. parsing:
  78. series: guessit
  79.  
  80.  
  81. global:
  82. no_entries_ok: yes
  83. pathscrub: windows
  84. free_space:
  85. path: "{? folder.drive ?}:/{? folder.root ?}"
  86. space: 5000
  87.  
  88. ##### Common torrents config
  89. #
  90. torrents:
  91. torrent_alive:
  92. min_seeds: 1
  93. reject_for: 15 minutes
  94. magnets: yes
  95. # Might need to disable if you are getting errors connecting to https sources
  96. # Can remove if you upgrade to python 2.7.9+ or install requests[security]
  97. #verify_ssl_certificates: no
  98. domain_delay:
  99. thepiratebay.se: 10 seconds
  100. thepiratebay.org: 10 seconds
  101. limetorrents: 3 seconds
  102. anidex.info: 3 seconds
  103.  
  104. ##### Transmission anime series config
  105. #
  106. transmission-anime-series:
  107. transmission:
  108. <<: *transmission-settings
  109. main_file_only: yes
  110. content_filename: "{{series_name}} - ep{{series_id}} - [{{quality}}]"
  111. path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}{{series_name|pathscrub}}/"
  112.  
  113. disable-seen-retry:
  114. disable:
  115. - seen
  116. - seen_info_hash
  117. - retry_failed
  118.  
  119. series-guessit:
  120. parsing:
  121. series: guessit
  122.  
  123. tasks:
  124. ##### Discover and download anime
  125. #
  126.  
  127. fill-anime-series-list:
  128. priority: 11
  129. template:
  130. - disable-seen-retry
  131. metainfo_series: yes
  132. list_clear:
  133. what:
  134. - entry_list: kitsu-series
  135. kitsu:
  136. username: urothis
  137. lists:
  138. - current
  139. - planned
  140. accept_all: yes
  141. set:
  142. title: "{{kitsu_name|re_replace('[-/:;.โ˜…](?=[a-zA-Z])', ' ')|re_replace('[:;](?![a-zA-Z])|[`ยด()]|TV|', '')|re_replace('Season ', 'S')|re_replace(' +', ' ')}}"
  143. list_add:
  144. - entry_list: kistu-series
  145.  
  146. download-anime-manual:
  147. priority: 14
  148. template:
  149. - disable-seen-retry
  150. - series-guessit
  151. - transmission-anime-series
  152. filesystem:
  153. path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"
  154. mask: '*.torrent'
  155. accept_all: yes
  156. exec:
  157. on_output:
  158. for_accepted: rm -f "{{location}}"
  159.  
  160. download-anime-series-discover:
  161. priority: 18
  162. template:
  163. - anime-series
  164. - anime-reject
  165. - torrents
  166. - transmission-anime-series
  167. metainfo_series: yes
  168. discover:
  169. release_estimations: ignore
  170. interval: 15 minutes
  171. what:
  172. - next_series_episodes:
  173. from_start: yes
  174. backfill: yes
  175. from:
  176. - search_rss: https://nyaa.si/?page=rss&c=1_2&q=\{{search_term}}
  177. - search_rss: https://anidex.info/rss/?cat=1&lang_id=1&q=\{{search_term}}
  178.  
  179.  
  180.  
  181. ##### Move anime from downloads folder to respective folders
  182. #
  183. move-anime:
  184. priority: 42
  185. template:
  186. - disable-seen-retry
  187. - series-guessit
  188. filesystem:
  189. path: "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"
  190. recursive: yes
  191. retrieve: files
  192. regexp: '.*\.(avi|mkv|mp4)$'
  193. metainfo_series: yes
  194. accept_all: yes
  195. move:
  196. to: "{? folder.drive ?}:/{? folder.root ?}{? folder.anime ?}{{series_name|default(title)|pathscrub}}/"
  197. clean_source: 50
  198. exec:
  199. allow_background: yes
  200. on_exit:
  201. phase:
  202. - find "{? folder.drive ?}:/{? folder.root ?}{? folder.downanime ?}"* -type d -empty -delete
  203. on_output:
  204. for_accepted: echo "{{location}}" >> "{? list.animerename ?}"
  205.  
  206. download-subtitles:
  207. priority: 45
  208. template:
  209. - disable-seen-retry
  210. subtitle_list:
  211. list: subtitles
  212. list_match:
  213. from:
  214. - subtitle_list:
  215. list: subtitles
  216. subliminal:
  217. exact_match: yes
  218. languages:
  219. - eng
  220.  
  221. ##### Clean finished torrents from transmission
  222. #
  223. clean-transmission:
  224. priority: 47
  225. disable: details
  226. clean_transmission:
  227. finished_for: 1 day
Add Comment
Please, Sign In to add comment