Deployed 4bcc15df with MkDocs version: 1.6.1

This commit is contained in:
2026-11-29 23:50:33 +00:00
parent 2ea99e27f1
commit c14c48df8c
11 changed files with 347 additions and 240 deletions
+5 -5
View File
@@ -3495,7 +3495,7 @@
<td><code>cdm_type</code></td>
<td>string</td>
<td>no</td>
<td>Preferred CDM type.</td>
<td>Preferred CDM type. A request that sets one of the service's <code>SERVER_DEVICE_OPTIONS</code> ignores it: the server loads the first-listed device of its <code>cdm</code> entry.</td>
</tr>
<tr>
<td><code>credentials</code>, <code>cookies</code>, <code>cache</code></td>
@@ -3687,7 +3687,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
</tbody>
</table>
<h3 id="post-apilist-tracks"><code>POST /api/list-tracks</code><a class="headerlink" href="#post-apilist-tracks" title="Permanent link">&para;</a></h3>
<p>Show the video, audio, and subtitle tracks for a title. For series, you can scope to specific episodes.</p>
<p>Show the video, audio, and subtitle tracks for a title. For series, you can scope to specific episodes. Each <code>title</code> in the response has the form of a <a href="#post-apilist-titles"><code>list-titles</code></a> title, with the same service flags (<code>anime</code>, <code>daily</code>, <code>metadata_provider</code>).</p>
<div class="admonition tip">
<p class="admonition-title">Spotting the original-language audio</p>
<p>Each audio track carries <code>is_original</code>, which marks the track the default <code>lang</code> of <code>orig</code> selects. unshackle finds it with the same language matcher the downloader uses. Thus it stays correct for regional variants a client cannot separate from tag text alone (<code>pt</code> marks <code>pt-BR</code> rather than <code>pt-PT</code>). Services need not report a title's language, so every track can legitimately come back <code>false</code>.</p>
@@ -4971,7 +4971,7 @@ answers the prompt within 10 minutes.</p>
<p class="admonition-title">Developer feature</p>
<p>The <code>/api/session/*</code> endpoints power unshackle's <strong>remote download</strong> mode. A thin local client authenticates once against a remote server, then fetches titles, tracks, and segments, and proxies DRM licensing back through it. The server mounts these endpoints in <code>--remote-only</code> mode, and they are what the built-in <code>RemoteService</code> client drives. Most end users never call them directly.</p>
</div>
<p>The server holds remote sessions in memory. They expire after <code>serve.session_ttl</code> (default 300s) without a request, except while awaiting interactive authentication input, which uses a 600s window. A remote session binds to the IP that made it, so the server rejects a request from a different IP with <code>403 FORBIDDEN</code>.</p>
<p>The server holds remote sessions in memory. They expire after <code>serve.session_ttl</code> (default 300s) without a request, except while the login runs, which can stay idle for the larger of <code>session_ttl</code> and 600s. A remote session binds to the IP that made it, so the server rejects a request from a different IP with <code>403 FORBIDDEN</code>.</p>
<h3 id="remote-session-lifecycle-overview">Remote session lifecycle overview<a class="headerlink" href="#remote-session-lifecycle-overview" title="Permanent link">&para;</a></h3>
<div class="language-text highlight"><pre><span></span><code><span id="__span-30-1"><a id="__codelineno-30-1" name="__codelineno-30-1" href="#__codelineno-30-1"></a>POST /api/session/create → returns session_id, status "authenticating"
</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
@@ -5267,7 +5267,7 @@ A slow answer arrives as a <a href="#slow-responses">slow response</a>.</p>
</tbody>
</table>
<h3 id="post-apisessionsession_idsegments"><code>POST /api/session/{session_id}/segments</code><a class="headerlink" href="#post-apisessionsession_idsegments" title="Permanent link">&para;</a></h3>
<p>Get the download URL, DRM info, headers, cookies, and raw track data for the selected tracks. Body: <code>{ "track_ids": ["v-1", "a-1"] }</code> (required). A track that the tracks response sent with <code>resolve_url</code> gets its URL from the service here. The server makes one service call at a time per remote session, so parallel requests wait for each other. A slow answer arrives as described in <a href="#slow-responses">Slow responses</a>.</p>
<p>Get the download URL, DRM info, headers, cookies, and track data for the selected tracks. Body: <code>{ "track_ids": ["v-1", "a-1"] }</code> (required). A track that the tracks response sent with <code>resolve_url</code> gets its URL from the service here. The server makes one service call at a time per remote session, so parallel requests wait for each other. A slow answer arrives as described in <a href="#slow-responses">Slow responses</a>.</p>
<div class="tabbed-set tabbed-alternate" data-tabs="26:1"><input checked="checked" id="__tabbed_26_1" name="__tabbed_26" type="radio" /><div class="tabbed-labels"><label for="__tabbed_26_1">Response <code>200</code></label></div>
<div class="tabbed-content">
<div class="tabbed-block">
@@ -5280,7 +5280,7 @@ A slow answer arrives as a <a href="#slow-responses">slow response</a>.</p>
</div>
</div>
</div>
<p><code>cookies</code> gives names and values only. <code>cookie_jar</code> gives the same cookies with their domain, path and <code>secure</code> flag, in the <code>session_cookie_jar</code> form of the tracks response.</p>
<p><code>data</code> has the form of the track <code>data</code> in <code>list-tracks</code>: the JSON-safe part of the service-set <code>track.data</code>, without the <code>hls</code>, <code>dash</code>, and <code>ism</code> parser keys. <code>cookies</code> gives names and values only. <code>cookie_jar</code> gives the same cookies with their domain, path and <code>secure</code> flag, in the <code>session_cookie_jar</code> form of the tracks response.</p>
<table>
<thead>
<tr>