Deployed e30db081 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-25 03:01:51 +00:00
parent 58134587bb
commit 3f7a6a3a31
14 changed files with 1030 additions and 942 deletions
+7 -58
View File
@@ -2753,17 +2753,6 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.drm.drm_from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-function"></code>&nbsp;drm_from_dict
</span>
</a>
</li>
<li class="md-nav__item">
@@ -3674,17 +3663,6 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.drm.drm_from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-function"></code>&nbsp;drm_from_dict
</span>
</a>
</li>
<li class="md-nav__item">
@@ -4166,7 +4144,7 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-contents ">
<p class="doc doc-class-bases">
Bases: <code><span title="Exception">Exception</span></code></p>
Bases: <code><span title="click.ClickException">ClickException</span></code></p>
@@ -4197,7 +4175,7 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-contents ">
<p class="doc doc-class-bases">
Bases: <code><span title="Exception">Exception</span></code></p>
Bases: <code><span title="click.ClickException">ClickException</span></code></p>
@@ -4238,9 +4216,7 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-contents ">
<p>Serialise this DRM instance for export/import (KIDs + license URL).</p>
<p>unshackle stores the content keys once at the export's track level, and does not
duplicate them here.</p>
<p>This DRM in the export form; see <code>wire.drm_to_dict</code>.</p>
</div>
@@ -5242,9 +5218,7 @@ the REST API can parse it again.</p>
<div class="doc doc-contents ">
<p>Serialise this DRM instance for export/import (PSSH + KIDs).</p>
<p>unshackle stores the content keys once at the export's track level, and does not
duplicate them here.</p>
<p>This DRM in the export form; see <code>wire.drm_to_dict</code>.</p>
</div>
@@ -5821,7 +5795,7 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-contents ">
<p class="doc doc-class-bases">
Bases: <code><span title="Exception">Exception</span></code></p>
Bases: <code><span title="click.ClickException">ClickException</span></code></p>
@@ -5852,7 +5826,7 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-contents ">
<p class="doc doc-class-bases">
Bases: <code><span title="Exception">Exception</span></code></p>
Bases: <code><span title="click.ClickException">ClickException</span></code></p>
@@ -6041,9 +6015,7 @@ It is <em>rare</em> to need to use this.</p>
<div class="doc doc-contents ">
<p>Serialise this DRM instance for export/import (PSSH + KIDs).</p>
<p>unshackle stores the content keys once at the export's track level, and does not
duplicate them here.</p>
<p>This DRM in the export form; see <code>wire.drm_to_dict</code>.</p>
</div>
@@ -6206,29 +6178,6 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-object doc-function">
<h2 id="unshackle.core.drm.drm_from_dict" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-function"></code> <span class="doc doc-object-name doc-function-name">drm_from_dict</span>
<a href="#unshackle.core.drm.drm_from_dict" class="headerlink" title="Permanent link">&para;</a></h2>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">drm_from_dict</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>Reconstruct a Widevine/PlayReady/ClearKeyCENC DRM instance from its <code>to_dict()</code> form.</p>
<p>Rebuilds the PSSH from the stored base64 (KIDs for ClearKey, which has no PSSH)
and re-injects any saved content keys so the resulting object can decrypt without
contacting a license server.</p>
</div>
</div>
<div class="doc doc-object doc-function">
<h2 id="unshackle.core.drm.drop_null_keys" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-function"></code> <span class="doc doc-object-name doc-function-name">drop_null_keys</span>
File diff suppressed because it is too large Load Diff
+86 -98
View File
@@ -2859,6 +2859,28 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.pssh_order" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;pssh_order
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.drm_from_pssh" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;drm_from_pssh
</span>
</a>
</li>
<li class="md-nav__item">
@@ -2892,28 +2914,6 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.base_kwargs_from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;base_kwargs_from_dict
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;from_dict
</span>
</a>
</li>
<li class="md-nav__item">
@@ -4536,6 +4536,28 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.pssh_order" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;pssh_order
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.drm_from_pssh" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;drm_from_pssh
</span>
</a>
</li>
<li class="md-nav__item">
@@ -4569,28 +4591,6 @@
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.base_kwargs_from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;base_kwargs_from_dict
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.tracks.Track.from_dict" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code>&nbsp;from_dict
</span>
</a>
</li>
<li class="md-nav__item">
@@ -5398,7 +5398,7 @@ If mime_type is not provided, it will try to guess it.</p>
<div class="doc doc-contents ">
<p>Serialise a URL-backed attachment for export/import.</p>
<p>The attachment in the export form; see <code>wire.attachment_to_dict</code>.</p>
</div>
@@ -8393,6 +8393,46 @@ the init data, and the byte range of the window. Returns None when the file has
<div class="doc doc-object doc-function">
<h3 id="unshackle.core.tracks.Track.pssh_order" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">pssh_order</span>
<a href="#unshackle.core.tracks.Track.pssh_order" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">pssh_order</span><span class="p">(</span><span class="n">cdm</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>Widevine and PlayReady, in the order to look for their PSSH.</p>
</div>
</div>
<div class="doc doc-object doc-function">
<h3 id="unshackle.core.tracks.Track.drm_from_pssh" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">drm_from_pssh</span>
<a href="#unshackle.core.tracks.Track.drm_from_pssh" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">drm_from_pssh</span><span class="p">(</span><span class="n">cdm</span><span class="p">,</span> <span class="n">read</span><span class="p">,</span> <span class="n">log</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>Set drm to the first DRM that <code>read</code> finds a PSSH for, in pssh_order.</p>
</div>
</div>
<div class="doc doc-object doc-function">
<h3 id="unshackle.core.tracks.Track.download" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">download</span>
@@ -8501,59 +8541,7 @@ This will overwrite anything at the target path.</p>
<div class="doc doc-contents ">
<p>Serialise the track for export/import (identity/URL/descriptor/language).</p>
<p>DRM is not serialised here. The export writer attaches the licensed DRM + keys.
Subclasses add their own codec/quality fields.</p>
</div>
</div>
<div class="doc doc-object doc-function">
<h3 id="unshackle.core.tracks.Track.base_kwargs_from_dict" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">base_kwargs_from_dict</span>
<span class="doc doc-labels">
<small class="doc doc-label doc-label-staticmethod"><code>staticmethod</code></small>
</span>
<a href="#unshackle.core.tracks.Track.base_kwargs_from_dict" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">base_kwargs_from_dict</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>Assemble the shared Track constructor kwargs from a <code>to_dict()</code> payload.</p>
<p>DRM is not reconstructed here: <code>to_dict</code> does not serialise it, and the import
flow attaches the licensed DRM + content keys separately.</p>
</div>
</div>
<div class="doc doc-object doc-function">
<h3 id="unshackle.core.tracks.Track.from_dict" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">from_dict</span>
<span class="doc doc-labels">
<small class="doc doc-label doc-label-classmethod"><code>classmethod</code></small>
</span>
<a href="#unshackle.core.tracks.Track.from_dict" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">from_dict</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>Reconstruct the correct Track subclass from a <code>to_dict()</code> payload.</p>
<p>The track in the export form; see <code>wire.track_to_dict</code>.</p>
</div>
+5 -3
View File
@@ -2104,7 +2104,8 @@
<ul>
<li><strong><code>proxy_map</code></strong>: remaps the region query you passed to <code>-p/--proxy</code> for this service.
A config key is that query, or <code>"provider:query"</code> when the flag also named a proxy provider. The value is
the query asked of the proxy provider instead. It has no effect when you give <code>-p</code> a full proxy URL.</li>
the query asked of the proxy provider instead. It has no effect when you give <code>-p</code> a full proxy URL.
<code>dl</code>, <code>search</code> and a REST API download job apply it. The other REST API routes and a <code>--remote</code> remote session do not.</li>
<li><strong><code>title_map</code></strong>: an exact-match rename map applied to fetched titles (source name →
desired name), so a service that names a title differently from your library still matches.</li>
<li><strong><code>dl</code></strong>: per-service download defaults, using the same keys as the global
@@ -2210,7 +2211,8 @@ your choice, and with a service option that runs the remote session on the serve
<p><code>auth_headers</code> lists extra header names to send the API key in, tried before the defaults
<code>X-Secret-Key</code> and <code>X-Api-Key</code>, which unshackle always appends as fallbacks. It sends the
first name. If the server answers <code>401</code>, it retries the same request with the next name, and
keeps the one that works for the rest of the HTTP session. Names you give keep your spelling and
keeps the one that works for the rest of the HTTP session. After a request succeeds, a <code>401</code>
no longer moves the API key to another name. Names you give keep your spelling and
are not repeated in the fallbacks, so unshackle tries
<code>auth_headers: ["Authorization", "x-secret-key"]</code> as <code>Authorization</code>, <code>x-secret-key</code>, <code>X-Api-Key</code>.</p>
<p><code>timeout</code> is the time in seconds that the client waits for data from the server. The
@@ -2288,7 +2290,7 @@ is the <a href="../../../dev/rest-api/">REST API</a> section. These are the conf
<td><code>max_sessions</code></td>
<td>int or null</td>
<td><code>100</code></td>
<td>Maximum concurrent remote sessions; at the cap the server evicts the oldest. Set it to <code>null</code> or <code>0</code> for no limit, which is also what <code>/api/dashboard/status</code> then reports, so a dashboard can tell "no cap" from a cap that happens to sit at the default.</td>
<td>Maximum concurrent remote sessions; at the cap the server evicts the oldest remote session of the API key that holds the most. Set it to <code>null</code> or <code>0</code> for no limit, which is also what <code>/api/dashboard/status</code> then reports, so a dashboard can tell "no cap" from a cap that happens to sit at the default.</td>
</tr>
<tr>
<td><code>history_limit</code></td>