mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs(cli): make cli-reference the one description of each dl flag and downloading.md the task guide
This commit is contained in:
+11
-15
@@ -640,24 +640,20 @@ merged file once. The README of each plugin gives its device files, its tools an
|
||||
|
||||
## Keys, vaults, and caching
|
||||
|
||||
Fetching a license is comparatively slow and, for some services, rate-limited.
|
||||
Fetching a licence is comparatively slow and, for some services, rate-limited.
|
||||
unshackle therefore resolves each key ID in this order before ever contacting a
|
||||
license server:
|
||||
licence server:
|
||||
|
||||
1. Keys already known for the current DRM object.
|
||||
2. An in-process cache of content keys, for the current `dl` run.
|
||||
1. The content keys that a remote server gives over `--remote`, or that an export holds
|
||||
for `unshackle import`.
|
||||
2. The content keys that the run already holds: from the service, or from an earlier track.
|
||||
3. Your configured [key vaults](vaults.md).
|
||||
4. Only if still missing, a live license request.
|
||||
4. Only if still missing, a licence from the CDM.
|
||||
|
||||
After a successful license request, unshackle writes the recovered keys back to all
|
||||
configured vaults, so future downloads can skip the license server. Two flags let you
|
||||
control this trade-off on the `dl` command:
|
||||
|
||||
| Flag | Effect |
|
||||
|------|--------|
|
||||
| `--vaults-only` | Never send a license request; use only cached/vault keys. Fails if a content key is missing. |
|
||||
| `--cdm-only` | Ignore vaults for sourcing keys and always perform a fresh license request. Over `--remote`, your own CDM licenses each track, and the run uses neither the server CDM nor the server vault. A remote session on the server's device fails, and so does a run with no local CDM. |
|
||||
| `--cdm <name>` | Use the named CDM device for this run instead of the one the `cdm` config maps for the service. Over `--remote`, that device licenses the remote session, not the server CDM. |
|
||||
After a successful licence, unshackle writes the recovered keys back to all
|
||||
configured vaults, so future downloads can skip the licence server.
|
||||
[`--vaults-only`, `--cdm-only` and `--cdm`](cli-reference.md#drm-keys-decryption) change
|
||||
this for one `dl` run.
|
||||
|
||||
See [key vaults](vaults.md) for how to configure vault backends.
|
||||
|
||||
@@ -680,7 +676,7 @@ debug_requests: true
|
||||
|
||||
## See also
|
||||
|
||||
- [Downloading](downloading.md): the `dl` command and its DRM-related flags.
|
||||
- [CLI reference](cli-reference.md#drm-keys-decryption): the DRM-related flags of the `dl` command.
|
||||
- [Key vaults](vaults.md): caching content keys across downloads.
|
||||
- [Configuration](../reference/configuration/index.md): the full `unshackle.yaml` reference.
|
||||
- [Dependencies](../getting-started/installation.md): installing shaka-packager and mp4decrypt.
|
||||
|
||||
Reference in New Issue
Block a user