fix(dash): refuse an encrypted DASH track with no licensable DRM and gate FairPlay-only DASH tracks for a hook service

This commit is contained in:
imSp4rky
2026-12-01 22:05:33 -07:00
parent 992fff3626
commit c7a3febf88
6 changed files with 174 additions and 14 deletions
+6
View File
@@ -502,6 +502,8 @@ such a track out of the selection:
or each selected audio track is FairPlay-only, `dl` skips the title.
- `--list` shows every track and checks none. An import is not checked, because its export holds the
content keys.
- With the hook, `dl` still leaves out FairPlay-only DASH tracks, because the bridge works for HLS only.
The line then reads `Left out 1 FairPlay-only track: DASH has no FairPlay bridge`.
A licence server that does not issue the content key refuses the challenge, and can flag the device. Test
the route with a licence-only run (`--cdm-only --skip-dl`) before a service relies on it.
@@ -583,6 +585,10 @@ one content key per track: the key changes of the playlist go with the tags. Thi
applies to a DRM object that the download builds. Any other track stops with
`None of the key systems are supported` before it downloads a segment.
A DASH track with no DRM object stops with the same error when its init segment has an encrypted
sample entry. A DASH track with no init segment stops after the download when the file has one, and
unshackle deletes the file. A service sample decrypter turns off both checks.
### How unshackle chooses a CDM and finds keys
CDM selection is config-driven: the `cdm` map resolves a service tag (and optionally the
+6 -1
View File
@@ -77,7 +77,7 @@ To download a Widevine-protected title you need a `.wvd` device. For PlayReady y
need a `.prd` device. You can hold both, and unshackle automatically selects the
appropriate one for each track.
!!! note "HLS tracks with only a FairPlay key tag"
!!! note "Tracks with only FairPlay protection"
unshackle has no FairPlay CDM and never sends a FairPlay challenge.
For a FairPlay-only track it can send a PlayReady or Widevine challenge for the KIDs of the init
segments to the licence server of the platform, which works only when that server issues the same
@@ -87,6 +87,11 @@ appropriate one for each track.
`Left out 1 FairPlay-only track: EXAMPLE has no FairPlay bridge hook`. When only FairPlay-only tracks
match your quality or range options, unshackle skips the title, unless you use `--best-available`.
`--list` still shows every track.
The route works for HLS only, so a service that defines it still loses its FairPlay-only DASH tracks:
`Left out 1 FairPlay-only track: DASH has no FairPlay bridge`.
An encrypted DASH track with no DRM system that unshackle can license stops with
`None of the key systems are supported`, and unshackle keeps no output file.
A licence without the content key of a key ID, or with a content key that does not decrypt the
track, stops the download of that track with an error, and unshackle keeps no output file.