Guest User

vrcencode.py

a guest
Sep 6th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.90 KB | None | 0 0
  1. tasks:
  2.   encode:
  3.     inputs:
  4.       - filesystem:
  5.           path: /mnt/pool/transmission/anime
  6.           recursive: true
  7.           mask: '*.mkv'
  8.       - filesystem:
  9.           path: /mnt/pool/transmission/anime
  10.           recursive: true
  11.           mask: '*.mp4'
  12.     metainfo_series: yes
  13.     #all_series: yes
  14.     #  #set:
  15.     #  #  path: "{{ series_name|lower|replace(' ','')|truncate(4,True) }}{{ series_id|pad(2) }}"
  16.     series:
  17.       settings:
  18.         animu:
  19.           parse_only: yes
  20.           set:
  21.             transcoder: vrcencode.py
  22.       animu:
  23.         - "Higurashi no Naku Koro ni Sotsu":
  24.             set:
  25.               shortname: higurashi
  26.         - "Kobayashi-san Chi no Maid Dragon S2":
  27.             set:
  28.               shortname: dragon
  29.         - "Uramichi Oniisan":
  30.             set:
  31.               shortname: uramichi
  32.         - "Shiroi Suna no Aquatope":
  33.             set:
  34.               shortname: aquatope
  35.         - "Kageki Shoujo!!":
  36.             set:
  37.               shortname: kageki
  38.         - "Jahy-sama wa Kujikenai!":
  39.             set:
  40.               shortname: jahy
  41.         - "俺、つしま - I'm Tsushima the Cat (ONA)":
  42.             set:
  43.               shortname: tsushima
  44.     disable:
  45.      - seen
  46.     require_field:
  47.      - series_name
  48.       - shortname
  49.       - transcoder
  50.     if:
  51.       - "(\"/mnt/med/www/\" ~ shortname ~ (series_id | pad(2)) ~ \".mp4\") is fs_file": reject
  52.  
  53.     accept_all: true
  54.     exec: /usr/bin/{{transcoder}} "{{location}}" "/mnt/med/www/{{shortname}}{{ series_id|pad(2) }}.mp4"
  55. animu:
  56.     inputs:
  57.       - rss: nyaa pastebin filtered
  58.     content_filter:
  59.      # XXX it's python fnmatch, so have to match literal brackets
  60.       reject: '*[[]v0[]]*'
  61.     series:
  62.       settings:
  63.         animu:
  64.           quality: 1080p
  65.           #set:
  66.           #  path: /mnt/pool/transmission/anime/{{series_name}}/
  67.           #  content_filename: "{{ series_name|lower|replace(' ','')|truncate(4,True) }}{{ series_episode|pad(2) }}"
  68.       animu:
  69.         - "Higurashi no Naku Koro ni Sotsu":
  70.             from_group: SubsPlease
  71.         - "Kobayashi-san Chi no Maid Dragon S2":
  72.             from_group: SubsPlease
  73.             tracking: no # some weird thing with ordering
  74.         - "Uramichi Oniisan":
  75.             from_group: SubsPlease
  76.         - "Shiroi Suna no Aquatope":
  77.             from_group: SubsPlease
  78.         - "Kageki Shoujo!!":
  79.             from_group: SubsPlease
  80.         - "Jahy-sama wa Kujikenai!":
  81.             from_group: SubsPlease
  82.         - "俺、つしま - I'm Tsushima the Cat (ONA)"
  83.       commie:
  84.         - "Vanitas no Carte":
  85.             from_group: Commie
  86.     transmission:
  87.       host: localhost
  88.       port: 9091
  89.       username: transmission
  90.       path: /mnt/pool/transmission/anime/{{series_name}}/
  91.       ## series_episode is undefined
  92.       #content_filename: "{{ series_name|lower|replace(' ','')|truncate(4,True) }}{{ series_episode|pad(2) }}"
Add Comment
Please, Sign In to add comment