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
|
||||
|
||||
|
||||
@@ -82,8 +82,11 @@ appropriate one for each track.
|
||||
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
|
||||
content key to PlayReady or Widevine.
|
||||
Only a service that defines this route does it. For another service, the download of a FairPlay-only
|
||||
track stops with `None of the key systems are supported`.
|
||||
Only a service that defines this route does it. For another service, unshackle leaves the FairPlay-only
|
||||
tracks out of the selection and takes the next best track that licenses, with one line:
|
||||
`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.
|
||||
|
||||
When each `EXT-X-KEY` of an fMP4 playlist is sample encryption
|
||||
for a DRM system that unshackle cannot license, such as FairPlay, unshackle reads the key ID from
|
||||
|
||||
Reference in New Issue
Block a user