Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Tautulli's configuration is required to use its parameters in rules.

## Tracearr

Tracearr's configuration is required to use its watch history parameters in rules.
Tracearr's configuration is required to use its watch history parameters in rules. Maintainerr requires Tracearr 2.7.0 or later.

:::note
Tracearr does not backfill media-server history. Only watch events recorded by Tracearr after it was connected to your media server are available to rules.
Expand Down
28 changes: 15 additions & 13 deletions docs/api/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,8 @@ The save is refused if no server matches, or if the one you named tracks a diffe

This can be slow: resolution probes up to 20 items per candidate server against your media server.

:::caution The version requirement is not enforced here
Only `POST /api/settings/test/tracearr` checks the minimum supported Tracearr version.
:::caution The version requirement is only enforced indirectly here
Only `POST /api/settings/test/tracearr` names the minimum supported Tracearr version. Without `server_id`, the save reads Tracearr's server list, which a Tracearr older than 2.7.0 does not have, so it is refused as having no matching server. With `server_id`, that list is not read.
:::

### `DELETE /api/settings/tracearr`
Expand All @@ -979,23 +979,25 @@ Re-adding Tracearr re-runs the whole resolve-and-verify probe. Rules that read T

Request body takes `url` and `api_key`.

| Status | Cause |
| ------ | -------------------------------------------------------------------------------- |
| `201` | An array of servers with `id` and `name`. **May legitimately be empty** |
| `400` | Validation failed |
| `502` | The document fetch threw, or reading item metadata from your media server failed |
| Status | Cause |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `201` | An array of servers with `id` and `name`. **May legitimately be empty** |
| `400` | Validation failed |
| `502` | Tracearr's server list could not be read, including on a Tracearr older than 2.7.0, or reading item metadata from your media server failed |

An empty array is ambiguous: it can mean the document had no server list, or the media server type filter removed every candidate. If the library list cannot be read, every candidate is returned with a warning rather than an error.
An empty array is ambiguous: it can mean Tracearr tracks no servers, or none of them is the same type as your media server.

### `POST /api/settings/test/tracearr`

**Probe a Tracearr URL and API key and check its version, without saving.**

| Status | Cause |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `201` with `status: "OK"` | Connected. `message` is the Tracearr version |
| `201` with `status: "NOK"` | `Unexpected response from Tracearr. Verify the URL points to a Tracearr v2 instance.`, a below-minimum-version refusal, or a connection failure |
| `400` | Validation failed |
| Status | Cause |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `201` with `status: "OK"` | Connected. `message` is the Tracearr version |
| `201` with `status: "NOK"` | `Tracearr 2.7.0 or later is required. Update Tracearr, or verify the URL points to it.`, `Unexpected response from Tracearr. Verify the URL points to Tracearr.`, or a connection failure |
| `400` | Validation failed |

The test reads Tracearr's server list, which arrived in Tracearr 2.7.0, so an older Tracearr answers `404` and gets the first message. No version number is compared, and a Tracearr build without build information reports `0.0.0`.

`server_id` is accepted by the schema but unused. A pass here says nothing about whether the save will find a matching server.

Expand Down
Loading