Deployed 9901b623 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-27 08:46:34 +00:00
parent 8ede94f88a
commit cf662a16fa
11 changed files with 595 additions and 234 deletions
+6 -2
View File
@@ -4950,7 +4950,7 @@ answers the prompt within 10 minutes.</p>
</span><span id="__span-30-2"><a id="__codelineno-30-2" name="__codelineno-30-2" href="#__codelineno-30-2"></a>GET /api/session/{id}/channel → WebSocket: prompts, CDM calls, logs, login state, drain
</span><span id="__span-30-3"><a id="__codelineno-30-3" name="__codelineno-30-3" href="#__codelineno-30-3"></a>GET /api/session/{id}/prompt → without the channel: poll until authenticated (submit answers via POST)
</span><span id="__span-30-4"><a id="__codelineno-30-4" name="__codelineno-30-4" href="#__codelineno-30-4"></a>GET /api/session/{id}/titles → list titles
</span><span id="__span-30-5"><a id="__codelineno-30-5" name="__codelineno-30-5" href="#__codelineno-30-5"></a>POST /api/session/{id}/tracks → tracks + chapters (with URLs) for one title
</span><span id="__span-30-5"><a id="__codelineno-30-5" name="__codelineno-30-5" href="#__codelineno-30-5"></a>POST /api/session/{id}/tracks → tracks + chapters (with URLs) for one title; a track that resolves its URL on use has resolve_url true and no URL
</span><span id="__span-30-6"><a id="__codelineno-30-6" name="__codelineno-30-6" href="#__codelineno-30-6"></a>POST /api/session/{id}/segments → resolve segment URLs / DRM / headers per track
</span><span id="__span-30-7"><a id="__codelineno-30-7" name="__codelineno-30-7" href="#__codelineno-30-7"></a>POST /api/session/{id}/segment_filter → HLS segments the service drops (ads, bumpers)
</span><span id="__span-30-8"><a id="__codelineno-30-8" name="__codelineno-30-8" href="#__codelineno-30-8"></a>POST /api/session/{id}/samples → decrypt cbcs samples of a track on the server
@@ -5415,7 +5415,7 @@ A slow answer arrives as a <a href="#slow-responses">slow response</a>.</p>
</tr>
<tr>
<td><code>drm_type</code></td>
<td><code>widevine</code> (default) or <code>playready</code>. In server-CDM mode the server's <code>cdm</code> mapping for the service decides the DRM system and the response <code>drm_type</code> names the system that licensed. The client's value decides only when the server has no mapping for the service.</td>
<td><code>widevine</code> (default) or <code>playready</code>. In server-CDM mode the server's <code>cdm</code> mapping for the service decides the DRM system and the response <code>drm_type</code> names the system that licensed. The client's value decides only when the server has no mapping for the service. A track whose DRM is a whole-file cipher takes <code>clearkeyctr</code> with no <code>pssh</code>: the service on the server licenses it.</td>
</tr>
<tr>
<td><code>mode</code></td>
@@ -5426,6 +5426,10 @@ A slow answer arrives as a <a href="#slow-responses">slow response</a>.</p>
<td>Requested track ids that carry no DRM, so they have no keys. Absent when every requested track is encrypted.</td>
</tr>
<tr>
<td><code>file_keys</code> (response)</td>
<td>Content keys of whole-file ciphers, by track id, for a single track and for a batch. Absent when no requested track holds such a cipher.</td>
</tr>
<tr>
<td><code>vault_keys</code> (response)</td>
<td>KIDs whose content key came from a server vault, not the CDM. The client proves such a content key with a decode before it trusts it; the field is absent when every content key came from the CDM.</td>
</tr>
+11 -1
View File
@@ -2991,6 +2991,11 @@ delivery method in <code>Track.Descriptor</code>, which tells unshackle how to d
<code>langcodes.Language</code>), <code>drm</code> (an optional iterable of DRM objects), <code>needs_repack</code>, and
descriptor-specific state stashed in <code>track.data["hls"]</code> / <code>track.data["dash"]</code>. If you
do not give a <code>name</code>, unshackle derives a human-readable name from the language.</p>
<p>When each URL of a <code>URL</code> track costs a request, give the track an empty <code>url</code> and set
<code>track.resolve_url</code> to a callable that returns the URL. unshackle calls it only for a
track that it downloads. Over <code>--remote</code>, the client asks the server for the URL of
each track it downloads, and the server calls the callable then. A track whose callable
fails gets no URL, and its download fails.</p>
<h3 id="video"><code>Video</code><a class="headerlink" href="#video" title="Permanent link">&para;</a></h3>
<p><code>Video</code> adds <code>codec</code>, <code>range</code>, <code>bitrate</code>, <code>width</code>, <code>height</code>, <code>fps</code>, <code>scan_type</code>, and
closed-caption descriptors. The relevant enums:</p>
@@ -3120,7 +3125,7 @@ because HLS variants carry no language.</p>
</ul>
<h2 id="drm-hooks">DRM hooks<a class="headerlink" href="#drm-hooks" title="Permanent link">&para;</a></h2>
<p>If a track carries DRM, the framework licenses and decrypts it, but it needs your
service to talk to the platform's license server. unshackle recognizes six DRM systems:</p>
service to talk to the platform's license server. unshackle recognizes seven DRM systems:</p>
<table>
<thead>
<tr>
@@ -3160,6 +3165,11 @@ service to talk to the platform's license server. unshackle recognizes six DRM s
<td>Blowfish CBC stripe cipher</td>
<td>the service gives the per-track key; no CDM, no license server</td>
</tr>
<tr>
<td><code>ClearKeyCTR</code></td>
<td>AES-128-CTR over a whole file</td>
<td>the service gives the IV and licenses the content key at the licence step; no CDM, no license server</td>
</tr>
</tbody>
</table>
<div class="admonition warning">