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