Advertisement
Guest User

Untitled

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