mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs: sweep docs to zero ste_lint findings and one remote session name
This commit is contained in:
@@ -22,8 +22,8 @@ directories:
|
||||
| `cookies` | path | `<data>/cookies` | Yes | Per-service cookie files (and VPN cookie files). |
|
||||
| `logs` | path | `<data>/logs` | Yes | Log files. |
|
||||
| `exports` | path | `<data>/exports` | Yes | Export JSON files. |
|
||||
| `wvds` | path | `<data>/WVDs` | Yes | Widevine device files (`.wvd`). |
|
||||
| `prds` | path | `<data>/PRDs` | Yes | PlayReady device files (`.prd`). |
|
||||
| `wvds` | path | `<data>/WVDs` | Yes | WVD files (Widevine devices, `.wvd`). |
|
||||
| `prds` | path | `<data>/PRDs` | Yes | PRD files (PlayReady devices, `.prd`). |
|
||||
| `plugins` | path | `unshackle/plugins` | Yes | DRM plugins: zip files or folders (see [DRM plugins](../../guide/drm-and-cdm.md#drm-plugins)). |
|
||||
| `dcsl` | path | `<data>/DCSL` | Yes | DCSL data. |
|
||||
| `commands` | path | `unshackle/commands` | Yes | CLI command modules. |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Download & processing { #download-processing }
|
||||
# Download & Processing { #download-processing }
|
||||
|
||||
## `dl`
|
||||
|
||||
@@ -453,7 +453,7 @@ boolean condition. It logs a warning in each of these cases and tries the next r
|
||||
`dual`, `multi` and `dubbed` carry the same meaning as the
|
||||
[filename variables of those names](#dual_multi_mode). Pair one with a language to name a
|
||||
release yourself, in place of the fixed `DUAL`, `MULTi` and `DUBBED` text. A rule that names
|
||||
`dubbed: true` and a language tags a localized dub without tagging a native release the same way.
|
||||
`dubbed: true` and a language tags a localised dub without tagging a native release the same way.
|
||||
|
||||
```yaml
|
||||
language_tags:
|
||||
@@ -569,7 +569,7 @@ hdr10plus_probe: true
|
||||
```
|
||||
|
||||
A remote server probes its tracks before it sends them, so the setting on the server applies to
|
||||
remote downloads and to the REST API.
|
||||
remote sessions and to the REST API.
|
||||
|
||||
## `generate_dv_mode`
|
||||
|
||||
@@ -592,5 +592,5 @@ generate_dv_mode: v29
|
||||
Dolby Vision that unshackle measures from the decoded video uses its measured average in all modes.
|
||||
`v40` raises the lowest average to about 10 nits, and `legacy` is the same as `v29`.
|
||||
|
||||
The setting applies on the machine that runs the hybrid step: the client for a remote download, the
|
||||
The setting applies on the machine that runs the hybrid step: the client for a remote session, the
|
||||
server for a REST API job.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# A complete annotated example
|
||||
# A Complete Annotated Example
|
||||
|
||||
The following config sets a handful of common config keys. Every config key not shown keeps its default.
|
||||
|
||||
|
||||
@@ -84,9 +84,7 @@ each metadata provider can answer with, see
|
||||
did not ask for.
|
||||
|
||||
!!! note "The `imdb` provider needs no key"
|
||||
It replaces the earlier `imdbapi` metadata provider, which read a third-party mirror
|
||||
(api.tiffara.com) and needed the `imdb_api_enabled` switch. That option is gone: delete it
|
||||
from your config, where it is now ignored.
|
||||
It needs no `imdb_api_enabled` switch either.
|
||||
|
||||
!!! tip "A different order per title kind"
|
||||
Give a map instead of one list when the best source differs by kind. TVDB is strongest on
|
||||
@@ -164,7 +162,7 @@ calls.
|
||||
|-----|------|---------|-------------|
|
||||
| `redact_paths` | bool | `true` | Mask install-root / venv / home prefixes in logged paths (`<unshackle>`, `<venv>`, `~`). Set `false` to show full paths. |
|
||||
| `debug` | bool | `false` | Global debug mode. |
|
||||
| `debug_keys` | bool | `false` | Log decryption keys. |
|
||||
| `debug_keys` | bool | `false` | Log content keys. |
|
||||
| `debug_requests` | bool | `false` | The one switch that writes an `http_request` entry for each HTTP attempt to the JSON debug log, and the request and response bodies as files in a folder beside it; `-d` and `debug` alone write neither. With `-d` it also keeps the HTTP library logs in the console. See [Debugging HTTP traffic](../../guide/troubleshooting.md#debug-requests). |
|
||||
| `debug_requests_body_limit` | int | `0` | The maximum number of bytes of a body file of `debug_requests`. `0` or unset records the full body. unshackle cuts a longer body and records its full size. |
|
||||
| `set_terminal_bg` | bool | `false` | Append the theme's background colour to output styling. |
|
||||
@@ -198,4 +196,4 @@ calls.
|
||||
| `curl_impersonate` | **Deprecated** → use [`network`](network.md) | Emits a `DeprecationWarning`; still honoured only if `network` is absent. |
|
||||
| `downloader` | **Deprecated** | Any value other than `"requests"` emits a `DeprecationWarning`; the value is otherwise ignored (the unified requests downloader is always used). |
|
||||
| `scene_naming` | **Removed** | If set to any non-null value, unshackle exits with an error directing you to configure [`output_template`](output.md) instead. |
|
||||
| `imdb_api_enabled` | **Removed** | Ignored. It gated the old `imdbapi` provider, which the keyless [`imdb`](#external-api-keys) provider replaces. Safe to delete from your config. |
|
||||
| `imdb_api_enabled` | **Removed** | Ignored. Safe to delete from your config. |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Network & proxy { #network-proxy }
|
||||
# Network & Proxy { #network-proxy }
|
||||
|
||||
## `network`
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Output & naming { #output-naming }
|
||||
# Output & Naming { #output-naming }
|
||||
|
||||
Keys that control the output filename, the per-title subfolder, release-group tagging, and
|
||||
filename character handling. For how unshackle builds a path, and for worked naming examples, see
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Post-scripts { #post-scripts }
|
||||
# Post-Scripts { #post-scripts }
|
||||
|
||||
Operate your own script when a download finishes, with unshackle's metadata passed in as
|
||||
`{variable}` placeholders. Use it to hand a finished file to an uploader, send a
|
||||
@@ -42,7 +42,7 @@ extra argument or a shell operator, and you never have to think about quoting. I
|
||||
means a path containing spaces always arrives as a single argument on every OS.
|
||||
|
||||
!!! warning "Prefix your variables"
|
||||
Titles, episode names and IDs come from the streaming service, not from you. Tokenizing
|
||||
Titles, episode names and IDs come from the streaming service, not from you. Tokenising
|
||||
first stops a value becoming a *new* argument, but a value on its own can still be a
|
||||
whole argument. A bare `{title}` whose value is `--upload-file=/etc/passwd` would arrive
|
||||
as an option to your script, not as text. Write `--title={title}`, not a bare `{title}`,
|
||||
@@ -106,7 +106,7 @@ values.
|
||||
| `{folder}` | Absolute path of its parent folder |
|
||||
| `{ext}` | Its extension, including the dot |
|
||||
| `{sidecars}` | Sidecar subtitle files written for this output, newline separated |
|
||||
| `{title}` | Show, movie or track name, sanitized |
|
||||
| `{title}` | Show, movie or track name, sanitised |
|
||||
| `{title_raw}` | Exactly what the service returned, untouched |
|
||||
| `{title_id}` | The service's ID for the title |
|
||||
| `{service}` | Service tag |
|
||||
@@ -173,7 +173,7 @@ track arrived in, such as `.flac`, because a music download is not muxed.
|
||||
|
||||
`{tmdb}`, `{imdb}` and `{tvdb}` carry the IDs unshackle tags the file with. unshackle reads
|
||||
them at the moment it dispatches the post-script, and not at the start of the run. The title search
|
||||
inside the download loop finds an episode's TMDB ID, so a post-script fires with it already filled in.
|
||||
that runs during the download finds an episode's TMDB ID, so a post-script fires with it already filled in.
|
||||
|
||||
They hold an ID you passed with `--tmdb`, `--imdb` or `--tvdb`, plus a TMDB ID the episode
|
||||
search resolved. No such search runs for a movie, so a movie post-script gets them empty unless you
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Services & authentication { #services-auth }
|
||||
# Services & Authentication { #services-auth }
|
||||
|
||||
## `services`
|
||||
|
||||
@@ -150,7 +150,7 @@ your choice, and with a service option that runs the remote session on the serve
|
||||
`X-Secret-Key` and `X-Api-Key`, which unshackle always appends as fallbacks. It sends the
|
||||
first name. If the server answers `401`, it retries the same request with the next name, and
|
||||
keeps the one that works for the rest of the HTTP session. After a request succeeds, a `401`
|
||||
no longer moves the API key to another name. Names you give keep your spelling and
|
||||
does not move the API key to another name. Names you give keep your spelling and
|
||||
are not repeated in the fallbacks, so unshackle tries
|
||||
`auth_headers: ["Authorization", "x-secret-key"]` as `Authorization`, `x-secret-key`, `X-Api-Key`.
|
||||
|
||||
@@ -169,7 +169,7 @@ In `--remote` mode unshackle turns the server's service list into synthetic CLI
|
||||
commands that operate against it, falling back to the tags in that `services` sub-dict when
|
||||
unshackle cannot fetch the list. Each synthetic command carries the server-side service's options and
|
||||
documentation, so `unshackle dl --remote <TAG> -h` shows the same help text as it does on the
|
||||
server. Service names resolve against the server's tags and aliases, not your local services.
|
||||
server. unshackle resolves a service tag against the server's tags and aliases, not your local services.
|
||||
If the server does not offer a name to your API key, unshackle rejects the name and lists the
|
||||
tags it does offer. See [remote sessions](../../guide/remote-sessions.md) for the
|
||||
full setup.
|
||||
@@ -188,7 +188,7 @@ is the [Server](../../dev/rest-api/index.md) section of the user guide. These ar
|
||||
| `tiers` | dict | `{}` | Named settings that `users` entries reference by name (see below). |
|
||||
| `services` | list | *(unset)* | Global service allowlist. Omit to allow all. |
|
||||
| `remote_only` | bool | `false` | Expose only the [remote session routes](../../dev/rest-api/remote-sessions.md#routes) and disable the rest of the REST API. |
|
||||
| `dashboard` | dict | *(unset)* | Developer dashboard: `key` is the API key for the read-only `/api/dashboard/` endpoints (status, remote sessions, remote session logs, jobs, keys, services, health, logs, SSE events). Unset leaves those routes unregistered, and a reload that removes the key makes them answer `404`. See [dashboard endpoints](../../dev/rest-api/dashboard.md). |
|
||||
| `dashboard` | dict | *(unset)* | Server dashboard: `key` is the API key for the read-only `/api/dashboard/` endpoints (status, remote sessions, remote session logs, jobs, keys, services, health, logs, SSE events). Unset leaves those routes unregistered, and a reload that removes the key makes them answer `404`. See [dashboard endpoints](../../dev/rest-api/dashboard.md). |
|
||||
| `session_ttl` | int (s) | `300` | Seconds a remote session can stay idle before it expires. An open session channel, or a request that works on the remote session, keeps it from expiring, so it does not expire during a long download. A remote session that still logs in can stay idle for the larger of this value and 600 seconds. A client that closes or loses its channel and does not come back loses its remote session sooner: see [Client presence](../../dev/rest-api/remote-sessions.md#client-presence). |
|
||||
| `max_sessions` | int or null | `100` | Maximum concurrent remote sessions; at the cap the server evicts the least recently used remote session of the API key that holds the most, and a remote session that a request works on goes last. Set it to `null` or `0` for no limit, which is also what `/api/dashboard/status` then reports, so a dashboard can tell "no cap" from a cap that happens to sit at the default. |
|
||||
| `history_limit` | int | `100` | How many finished jobs to retain in history. |
|
||||
@@ -351,7 +351,7 @@ serve:
|
||||
EXAMPLE2: true # every profile (or the single credential), any region
|
||||
```
|
||||
|
||||
Each entry under a service names a profile from `credentials`, or a cookie file
|
||||
Each entry under a service is the name of a profile from `credentials`, or of a cookie file
|
||||
`cookies/<TAG>/<profile>.txt` for a service that has no credentials. Its value is the region or
|
||||
regions that account works in: a two-letter country code, a list of them, or `global`. Quote
|
||||
`no` (Norway), because YAML reads the bare word as `false`.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Key vaults { #key-vaults }
|
||||
# Key Vaults { #key-vaults }
|
||||
|
||||
Two config keys configure the key vaults. What a vault does during a download, the decode
|
||||
check and the `kv` commands are in the [Vaults](../../guide/vaults.md) guide.
|
||||
|
||||
Reference in New Issue
Block a user