Gamma Configuration - Chinachu/Chinachu GitHub Wiki
設定ファイル
- config.json
- rules.json
上記ファイルが存在しない場合は、hoge.sample.jsonからコピーしてください。
注意
rules.json
のサンプルルールを残したままOperatorを起動すると、アニメジャンルの録画が大量に開始されます。[]
と設定するとルールを空にできます。ルールはWUIかCLIから追加できます。- ケツカンマはエラーになります。設定ファイルは正しいJSONフォーマットにしてください。
- JSONフォーマットのチェックはこちら http://jsonlint.com/
config.json
新しく増えたプロパティは太字。
プロパティ | 種類 | デフォルト値 | 必須 | 説明 |
---|---|---|---|---|
uid | number,string | yes(pm2) | rootで立ち上げた時に指定したuidに降格 | |
gid | number,string | "video" |
no | VAAPI を利用する場合必要 |
mirakurunPath | string | ... | no | Mirakurunのパス(URL) |
vaapiEnabled | boolean | false |
no | ffmpegでVAAPIを使う (Chinachu内部ビルドのffmpeg削除の上、別途ビルド必須) |
vaapiDevice | string | "/dev/dri/renderD128" |
no | VAAPI有効時必須 |
excludeServices | number[] | [] |
no | 除外するサービス(チャンネル) (id→ mirakurun:40772/api/services) |
serviceOrder | number[] | [] |
no | サービス(チャンネル)の並び順指定 (id→ mirakurun:40772/api/services) |
recordedDir | string | yes | 録画保存先の相対またはフルパス | |
temporaryDir | string | yes | 一時保存先の相対またはフルパス | |
recordedFormat | string | yes | Configuration/recordedFormat | |
recordedCommand | string | no | Configuration/recordedCommand | |
normalizationForm | string(enum) | (無変換) | no | Unicode 正規化形式: `"NFC" |
wuiOpenServer | boolean | (true ) |
no | LAN用の無認証サーバーを使う |
wuiOpenHost | string | (自動) | no | ※自動でうまくいかない場合はサーバーのプライベートIPv4アドレスを指定する |
wuiOpenPort | number | 20772 |
no | WUI/APIを動作させる無認証ポート |
wuiHost | string,null | "0.0.0.0" |
no | (廃止予定) |
wuiPort | number | (null ) |
no | (廃止予定) |
wuiUsers | array | no | (廃止予定) | |
wuiAllowCountries | array | [] |
no | (廃止予定) |
wuiTlsKeyPath | string,null | (null ) |
no | (廃止予定) |
wuiTlsCertPath | string,null | (null ) |
no | (廃止予定) |
wuiXFF | boolean | (false ) |
no | (廃止予定) |
operTweeter | boolean | (false ) |
no | Configuration/operTweeter |
operTweeterAuth | object | no | Configuration/operTweeter | |
operTweeterFormat | object | no | Configuration/operTweeter | |
storageLowSpaceThresholdMB | number | 3000 |
no | ストレージの限界閾値 |
storageLowSpaceAction | string(enum) | "remove" |
no | 限界閾値を超えたときの挙動: `"none" |
storageLowSpaceNotifyTo | string | no | 限界閾値を超えたときのメールアラート通知先 | |
storageLowSpaceCommand | string | no | 限界閾値を超えたときに実行するコマンド |
rules.json
配列として次のプロパティのあるオブジェクトを無制限に指定することができます
プロパティ | 種類 | 例 | 説明 |
---|---|---|---|
types | array | ["GR", "BS"] | 放送波のタイプ。"GR", "BS", "CS", "EX"の中から指定する |
categories | array | ["anime"] | カテゴリー(=ジャンル)。Misc/List_of_Categories |
channels | array | ["20", "BS_211"] | チャンネル。チャンネルキーまたはチャンネルIDで指定する |
ignore_channels | array | ["26", "BS_101"] | 無視するチャンネル。 |
reserve_flags | array | ["新"] | フラグ。新、終、再など。一部の放送波では非対応 |
ignore_flags | array | ["再"] | 無視するフラグ。 |
hour | object | {"start":22,"end":4} | 時間帯指定。 |
duration | object | {"min":600,"max":10801} | 長さ指定。(秒数) |
reserve_titles | array | ["アクセル", "俺の妹"] | タイトル。(部分一致) |
ignore_titles | array | ["AKB"] | 無視するタイトル。 |
reserve_descriptions | array | ["視聴年齢制限"] | 説明文。(部分一致) |
ignore_descriptions | array | ["岩尾"] | 無視する説明文。 |