create_plugin
Generate a basic local Tdarr plugin by defining matching conditionals and a processing preset, turning file conditions into an automated transcode action.
Instructions
Create a basic local classic plugin with Tdarr's plugin creator (POST /api/v2/create-plugin). The conditionals string is the plugin's matching logic; the action describes what to run when it matches. For anything beyond a simple condition/action pair, create it here and then refine the source with read_plugin and save_plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Plugin name | |
| type | Yes | Plugin type, e.g. 'Video' or 'Audio' | |
| preset | Yes | ffmpeg or HandBrake arguments to run | |
| info_log | Yes | Message logged when the plugin runs | |
| container | Yes | Output container, e.g. '.mkv' | |
| operation | Yes | Plugin operation, e.g. 'Transcode' | |
| description | Yes | What the plugin does | |
| ffmpeg_mode | Yes | Run the preset through ffmpeg | |
| conditionals | Yes | The plugin's matching conditions, as a string | |
| process_file | Yes | Whether a matching file should be processed | |
| handbrake_mode | Yes | Run the preset through HandBrake | |
| conditional_notes | No | Notes about the conditions (default empty) |