docs: give each dl and serve flag and the error envelope one owner page and tighten the cli-reference test

This commit is contained in:
imSp4rky
2026-12-04 20:13:12 -07:00
parent 87b58190ea
commit f10b8dcf99
16 changed files with 90 additions and 181 deletions
+14 -11
View File
@@ -156,16 +156,17 @@ unshackle honours the special language tokens `orig`, `all`, and `best` everywhe
Keep only certain track types, or skip certain track types.
| Include-only | Skip |
|---|---|
| `-V`, `--video-only` | `-nv`, `--no-video` |
| `-A`, `--audio-only` | `-na`, `--no-audio` |
| `-S`, `--subs-only` | `-ns`, `--no-subs` |
| `-C`, `--chapters-only` | `-nc`, `--no-chapters` |
| | `-nt`, `--no-attachments` (cover art, subtitle fonts, and files the service attaches) |
| Flag | Description |
|---|---|
| `-V`, `--video-only` | Keep only the video tracks. |
| `-A`, `--audio-only` | Keep only the audio tracks. |
| `-S`, `--subs-only` | Keep only the subtitle tracks. |
| `-C`, `--chapters-only` | Keep only the chapters. |
| `-nv`, `--no-video` | Skip the video tracks. |
| `-na`, `--no-audio` | Skip the audio tracks. |
| `-ns`, `--no-subs` | Skip the subtitle tracks. |
| `-nc`, `--no-chapters` | Skip the chapters. |
| `-nt`, `--no-attachments` | Skip the attachments: cover art, subtitle fonts, and files the service attaches. |
| `-ad`, `--audio-description` | Include descriptive (audio-description) tracks. Without it, unshackle drops them. |
| `-ado`, `--audio-description-only` | Keep only descriptive (audio-description) tracks; drop the standard audio. Does not need `-ad`. |
| `--skip-subtitle-errors` | Skip a failed subtitle instead of aborting the title. Video/audio failures remain fatal. |
@@ -588,16 +589,18 @@ unshackle serve [OPTIONS]
| Option | Default | Description |
|---|---|---|
| `-h`, `--host` | `127.0.0.1` | Host to serve from. |
| `-h`, `--host` | `127.0.0.1` | Host to serve from. `0.0.0.0` accepts connections from other machines. |
| `-p`, `--port` | `8786` | Port to serve from. |
| `--caddy` | off | Also serve through Caddy (requires the `caddy` binary and a `Caddyfile`). |
| `--caddy` | off | Also serve through Caddy as a reverse proxy, with the `Caddyfile` in your user config directory. Needs the `caddy` binary. |
| `--api-only` | off | Serve only the REST API, not the CDM endpoints. Incompatible with `--no-widevine`/`--no-playready`. |
| `--cdm-only` | off | Serve only the Widevine/PlayReady CDM endpoints, plus `/api/health` and the dashboard: no REST API, no remote sessions and no Swagger UI. Incompatible with `--api-only` and `--remote-only`. |
| `--no-widevine` | off | Disable the Widevine CDM endpoints. |
| `--no-playready` | off | Disable the PlayReady CDM endpoints. |
| `--no-key` | off | Disable API-key authentication (allows all requests). |
| `--debug-api` | off | Include tracebacks/stderr in API error responses. |
| `--debug` | off | Enable debug logging for API operations. |
| `--remote-only` | off | Expose only the remote session routes: `/api/health`, `/api/services`, `/api/search`, `/api/session/*`, `/api/tunnel` and `/api/tunnel/check`, and the dashboard routes when `serve.dashboard.key` is set. Implies `--api-only`. |
| `--remote-only` | off | Expose only the [remote session routes](../dev/rest-api/remote-sessions.md#routes) and the dashboard routes when `serve.dashboard.key` is set. Implies `--api-only`. |
| `-q`, `--quiet` | off | Headless mode: no banner and no Rich output, plain log lines on stderr. With `--debug`, also writes the log to a file in `directories.logs`. |
WVD files in the WVDs directory and PRD files in the PRDs directory are auto-loaded. The REST API lives under `http://<host>:<port>/api/`, with Swagger UI at `/api/docs/` and a health check at `/api/health`.
+2 -7
View File
@@ -25,13 +25,8 @@ When a download finishes, unshackle builds the final path from three pieces:
```
The folder name comes from the `series` folder template and the file from the `series` output template.
Two command-line flags change this layout for a single run:
| Flag | Effect |
|---|---|
| `-o`, `--output` | Use this directory instead of `directories.downloads`. |
| `--no-folder` | Skip the per-title subfolder; write the file directly into the output directory. |
| `--no-source` | Omit the service source tag from both the filename and folder (the `{source}` variable resolves to empty). |
The [`-o`/`--output`, `--no-folder` and `--no-source` flags](cli-reference.md#output-muxing-files)
change this layout for a single run.
## Output templates
+7 -14
View File
@@ -21,15 +21,11 @@ a query to a real proxy URL: [basic static proxies](#basic-static-proxies),
## The `--proxy` flag
Five options on the `dl` command control proxying at download time:
| Option | Effect |
|---|---|
| `--proxy` | The proxy to use. Either an explicit URI, or a query that unshackle resolves against your configured providers. |
| `--local-proxy` | With `--remote`, send the server's service requests through your machine's own connection, or through a `--proxy` that your machine connects to. See [Send the server's requests through your machine](#send-the-servers-requests-through-your-machine). |
| `--no-proxy` | Force **all** proxy use off. No providers are initialised and no proxy query is resolved. |
| `--no-proxy-download` | Use the proxy for the manifest, licence, and authentication, but bypass it for the **downloads** themselves. |
| `--proxy-download` | Use `--proxy` for the manifest, licence, and authentication, and a different proxy for the **downloads**. Takes the same forms as `--proxy`. |
Five options on the `dl` command control proxying at download time: `--proxy`, `--local-proxy`,
`--no-proxy`, `--no-proxy-download` and `--proxy-download`. The
[network and proxy flags](cli-reference.md#network-proxy) give what each one does.
[Send the server's requests through your machine](#send-the-servers-requests-through-your-machine)
explains `--local-proxy`.
```shell title="Explicit proxy URI"
unshackle dl --proxy http://user:pass@1.2.3.4:8080 EXAMPLE 81234567
@@ -533,11 +529,8 @@ it next needs them.
configuration. The resolver ID lets anyone who has it use that endpoint's proxy, so treat
it as a secret: unshackle masks it in logs and in stored job parameters.
The server must run a version of unshackle that knows `controld://`. An older server
rejects it with `INVALID_PROXY`: `Proxy provider 'controld' not found` when your API key
has `server_proxy`, else a message that asks for a full proxy URI. A bare region, such
as `--proxy ca`, skips Control D with `--remote`, because the proxy it gives is on your
machine. A service whose accounts the server manages does not accept a proxy from the
A bare region, such as `--proxy ca`, skips Control D with `--remote`, because the proxy it
gives is on your machine. A service whose accounts the server manages does not accept a proxy from the
client, and that includes a Control D resolver.
### Troubleshooting Control D
+3 -14
View File
@@ -79,20 +79,9 @@ You normally do not need to think about any of this. It gives a clean file.
## Selecting and filtering subtitles
Subtitle selection happens through `dl` flags. The most important is language selection.
| Flag | Purpose |
| --- | --- |
| `-sl`, `--s-lang` | Language(s) wanted for subtitles. Defaults to `all`. A `-` prefix excludes, e.g. `all,-es`. |
| `--require-subs` | Require these languages to exist. The title fails if one is missing. `--s-lang` still decides what to keep. |
| `-fs`, `--forced-subs` | Include forced subtitle tracks (excluded by default). |
| `-fso`, `--forced-subs-only` | Keep only forced subtitle tracks and drop the other subtitles; implies `-fs`. |
| `-fsl`, `--forced-s-lang` | Language(s) wanted for forced subtitles; implies `-fs`. A `-` prefix excludes. |
| `--exact-lang` | A tag without a region never falls back to another variant: `es` does not match `es-419`. |
| `-S`, `--subs-only` | Download only subtitle tracks. |
| `-ns`, `--no-subs` | Do not download subtitle tracks at all. |
| `--sub-format` | Output subtitle format / conversion target (see [conversion](#converting-subtitle-formats)). |
| `--sub-font` | Font for subtitles converted to ASS; implies `--sub-format ass` (see [custom font and style](#custom-font-and-style)). |
| `--skip-subtitle-errors` | Skip a subtitle that fails to download instead of aborting the whole title. |
The [language and subtitle flags](cli-reference.md#language-subtitles) give the meaning and
default of each one. `--subs-only`, `--no-subs` and `--skip-subtitle-errors` are with the
[track-type flags](cli-reference.md#track-type-inclusion-exclusion).
### Choosing languages