tdarr_library_add
Add one Tdarr library per folder by cloning an existing library, reset counters, preview changes with a dry run, then apply and optionally scan for new files.
Instructions
Add folders to Tdarr: one new library per folder, cloned from an existing library (same flow/plugin stack, transcode/health-check settings, cache and output unless given), with counters reset. Folders may be host paths (translated through the Tdarr container mounts). The dry run shows every library object that will be inserted. Optionally starts a "find new" scan of each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | host name from the inventory that has apps.jellyfin / apps.tdarr | |
| scan | No | scanFindNew each new library afterwards | |
| apply | No | false (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash | |
| cache | No | transcode cache folder (default: the template's) | |
| names | No | library names, same order as folders (default: the folder name) | |
| output | No | output folder when the template converts folder-to-folder | |
| folders | Yes | absolute folders, host or container paths | |
| planHash | No | planHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since | |
| template | Yes | existing Tdarr library to copy settings from |