mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-02 05:55:08 +00:00
feat(dl): leave FairPlay-only tracks out of the selection for a service without get_fairplay_bridge_license
This commit is contained in:
@@ -488,10 +488,23 @@ for track in tracks.videos + tracks.audio:
|
||||
track.drm_preference = "playready"
|
||||
```
|
||||
|
||||
Without the hook, the download of a FairPlay-only track stops with
|
||||
`None of the key systems are supported`, and no challenge goes to the licence server. 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.
|
||||
Without the hook, no challenge goes to the licence server for a FairPlay-only track, and `dl` leaves
|
||||
such a track out of the selection:
|
||||
|
||||
- After the selection and the deferred DRM load, `dl` checks each selected video and audio track that has
|
||||
no DRM object. An HLS track costs one request for its media playlist. A DASH track is FairPlay-only when
|
||||
its `ContentProtection` elements name only DRM systems that unshackle cannot license and its init segment
|
||||
has no Widevine or PlayReady `pssh`.
|
||||
- `dl` removes each FairPlay-only track and selects again, so the run takes the next best track that
|
||||
licenses. It logs one line for each title: `Left out 2 FairPlay-only tracks: EXAMPLE has no FairPlay bridge hook`.
|
||||
- When a quality, range or codec flag matches only FairPlay-only tracks, the second selection skips the
|
||||
title with its usual reason, and `--best-available` takes its usual fallback. When each selected video
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
### Decrypting a cbcs file yourself
|
||||
|
||||
|
||||
Reference in New Issue
Block a user