fix(remote): stop at the licence step when a licence fails, falling back only to the service's cdm entry

This commit is contained in:
imSp4rky
2026-12-04 16:31:28 -07:00
parent dd524f2cb2
commit 3bdca22bc7
10 changed files with 355 additions and 48 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ licenses the remote session.
On a server, an API key can replace the entry for a service with its own (see
[`serve`](services.md#serve)).
With only the top-level `default` entry, the server CDM licenses when the API key has it. Set
`server_cdm: true` on the server entry to keep a per-service entry for local runs only. See
`server_cdm: true` on the server entry to keep a per-service entry for local runs only. Its device
then licenses only a track that the server refuses or fails to license. See
[`remote_services`](services.md#remote_services).
```yaml
+7
View File
@@ -135,6 +135,13 @@ remote_services:
When the server refuses the server CDM for a service whose `cdm` entry loaded the device,
unshackle logs the fallback to that device as info, not as a warning.
The same device licenses a track when the server licence for that track fails, for example with a
server error or an answer with no content key for the track. unshackle logs one info line that
gives the server failure and the device. Without a `cdm` entry for the service that names the
loaded device, a failed server licence stops the run with one `DRM_ERROR` line: unshackle never
falls back to the device of the `default` entry. When the fallback device also fails, the run
stops at the licence step of that track.
The server has the last word. When it keeps the server CDM for a remote session that your
device was to license, unshackle shows a warning. This occurs with a server that does not read
your choice, and with a service option that runs the remote session on the server's device.