Deployed 35e0d827 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-25 23:53:34 +00:00
parent aa138942f6
commit f990aa70ba
11 changed files with 997 additions and 829 deletions
+6 -6
View File
@@ -4022,7 +4022,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
<td><code>video_only</code> / <code>audio_only</code> / <code>subs_only</code> / <code>chapters_only</code></td>
<td>boolean</td>
<td><code>false</code></td>
<td>Track-type restriction (at most one).</td>
<td>Track-type restriction. Two or more combine, as on the CLI.</td>
</tr>
<tr>
<td><code>no_subs</code> / <code>no_audio</code> / <code>no_chapters</code> / <code>no_video</code> / <code>no_attachments</code></td>
@@ -4050,9 +4050,9 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
</tr>
<tr>
<td><code>slow</code></td>
<td>boolean/string</td>
<td>boolean/string/array</td>
<td><code>null</code></td>
<td>Randomized delay between downloads.</td>
<td>Randomized delay between downloads: <code>true</code> (60-120 seconds), <code>"MIN-MAX"</code>, or <code>[MIN, MAX]</code>.</td>
</tr>
<tr>
<td><code>split_audio</code></td>
@@ -4166,7 +4166,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
<td><code>tmdb_id</code> / <code>imdb_id</code> / <code>tvdb_id</code> / <code>anilist_id</code></td>
<td>-</td>
<td><code>null</code></td>
<td>External ID overrides. Each resolves its metadata directly instead of by a title search, and is used for tagging. Set <code>enrich</code> to also take the title, year and original language. Give at most one of <code>tmdb_id</code>, <code>imdb_id</code> and <code>tvdb_id</code>, since unshackle resolves the others from it. Sending two returns <code>400</code>. <code>anilist_id</code> still combines with one of them. <code>tmdb_id</code> and <code>tvdb_id</code> must be positive integers, <code>imdb_id</code> must look like <code>tt1375666</code>, and <code>anilist_id</code> must be a positive integer or a string like <code>mal:12345</code>, or the request returns <code>400</code>. An ID whose provider is unconfigured, such as <code>tmdb_id</code> with no <code>tmdb_api_key</code>, fails the job rather than returning <code>400</code>. <code>anilist_id</code> needs no API key.</td>
<td>External ID overrides. Each resolves its metadata directly instead of by a title search, and is used for tagging. Set <code>enrich</code> to also take the title, year and original language. Give at most one of <code>tmdb_id</code>, <code>imdb_id</code> and <code>tvdb_id</code>, since unshackle resolves the others from it. Sending two returns <code>400</code>. <code>anilist_id</code> still combines with one of them. <code>tmdb_id</code> and <code>tvdb_id</code> must be positive integers, <code>imdb_id</code> must look like <code>tt1375666</code>, and <code>anilist_id</code> must be a positive integer or a string like <code>mal:12345</code>, or the request returns <code>400</code>. An ID whose provider is unconfigured, such as <code>tmdb_id</code> with no <code>tmdb_api_key</code>, returns <code>400</code>. <code>anilist_id</code> needs no API key.</td>
</tr>
<tr>
<td><code>tvdb_order</code></td>
@@ -4184,7 +4184,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
<td><code>enrich</code></td>
<td>boolean</td>
<td><code>false</code></td>
<td>Overwrite title, year and original language with the external source's. Needs one of <code>tmdb_id</code>, <code>imdb_id</code>, <code>tvdb_id</code> or <code>anilist_id</code>. Without one the job fails instead of returning <code>400</code>.</td>
<td>Overwrite title, year and original language with the external source's. Needs one of <code>tmdb_id</code>, <code>imdb_id</code>, <code>tvdb_id</code> or <code>anilist_id</code>. Without one the request returns <code>400</code>.</td>
</tr>
<tr>
<td><code>daily</code></td>
@@ -4206,7 +4206,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
</tr>
</tbody>
</table>
<p><strong>Validation.</strong> Invalid values return <code>400 INVALID_PARAMETERS</code>. <code>vcodec</code>, <code>acodec</code> and <code>sub_format</code> take the same spellings as the CLI options of the same name (<code>unshackle dl --help</code> prints each list). The API and the CLI read one list, so they cannot disagree. <code>range</code> must be one of SDR/HDR10/HDR10P/VIVID/DV/HLG/HYBRID, and <code>HDR10+</code> and <code>HDR Vivid</code> are also valid. The bitrate, download worker, and download counts must be positive integers. You may set at most one of the <code>*_only</code> flags. You cannot combine <code>no_subs</code> with <code>subs_only</code>, or <code>no_audio</code> with <code>audio_only</code>. The language fields (<code>lang</code>, <code>v_lang</code>, <code>a_lang</code>, <code>s_lang</code>, <code>forced_s_lang</code> and the <code>require_*</code> fields) must be arrays of strings: a single string such as <code>"en"</code> returns <code>400</code>. The server checks every other field with the type of its <code>dl</code> option. A <code>null</code> or an empty string gets the default from the table.</p>
<p><strong>Validation.</strong> Invalid values return <code>400 INVALID_PARAMETERS</code>. <code>vcodec</code>, <code>acodec</code> and <code>sub_format</code> take the same spellings as the CLI options of the same name (<code>unshackle dl --help</code> prints each list). The API and the CLI read one list, so they cannot disagree. <code>range</code> must be one of SDR/HDR10/HDR10P/VIVID/DV/HLG/HYBRID, and <code>HDR10+</code> and <code>HDR Vivid</code> are also valid. The bitrate, download worker, and download counts must be positive integers. You cannot combine <code>no_subs</code> with <code>subs_only</code>, or <code>no_audio</code> with <code>audio_only</code>. The server runs the same option checks as <code>unshackle dl</code>, so a request that <code>dl</code> would refuse returns <code>400</code> when you submit it, and the message names the <code>dl</code> option. The language fields (<code>lang</code>, <code>v_lang</code>, <code>a_lang</code>, <code>s_lang</code>, <code>forced_s_lang</code> and the <code>require_*</code> fields) must be arrays of strings: a single string such as <code>"en"</code> returns <code>400</code>. The server checks every other field with the type of its <code>dl</code> option. A <code>null</code> or an empty string gets the default from the table.</p>
<p><strong>Service options.</strong> A service's own CLI options travel in the same body. Send them in a nested
<code>service_params</code> object, or as flat top-level keys. When the body has <code>service_params</code>, the server
reads service options only from it, and every flat key is a <code>dl</code> value. Without it, a flat key that
+19 -8
View File
@@ -2605,9 +2605,15 @@ For example, a missing <code>service</code> field yields <code>INVALID_INPUT</co
service yields <code>INVALID_SERVICE</code>. These carry a precise code, message, and often a
populated <code>details</code> object.</p>
<p><strong>Categorised exceptions.</strong> When an endpoint calls into a streaming service and an
uncategorised exception bubbles up, the server runs it through a classifier that
inspects the exception type and message and maps it to the most appropriate code.
The classification is keyword-based, checked in order:</p>
exception that is not an <code>APIError</code> bubbles up, the server gives it a code in two steps:</p>
<ol>
<li><strong>The code the failure names.</strong> An unshackle core failure states its own code: a region
check gives <code>GEOFENCE</code>, a proxy that fails gives <code>INVALID_PROXY</code>, a login that needs
an absent user gives <code>AUTH_FAILED</code>, and a DRM failure gives <code>DRM_ERROR</code>. The server
reads this code first, so the wording of the message does not change it.</li>
<li><strong>The keywords of the message.</strong> A failure that names no code, such as the plain text
that a service raises, gets a code from the words in its message, checked in order:</li>
</ol>
<table>
<thead>
<tr>
@@ -2618,6 +2624,16 @@ The classification is keyword-based, checked in order:</p>
</thead>
<tbody>
<tr>
<td><code>geofence</code>, <code>geoblock</code>, <code>geo-block</code>, <code>geolocation</code>, <code>region</code>, <code>not available in</code>, <code>territory</code></td>
<td><code>GEOFENCE</code> (403)</td>
<td>no</td>
</tr>
<tr>
<td><code>proxy</code></td>
<td><code>INVALID_PROXY</code> (400)</td>
<td>no</td>
</tr>
<tr>
<td><code>auth</code>, <code>login</code>, <code>credential</code>, <code>unauthorized</code>, <code>forbidden</code>, <code>token</code></td>
<td><code>AUTH_FAILED</code> (401)</td>
<td>no</td>
@@ -2628,11 +2644,6 @@ The classification is keyword-based, checked in order:</p>
<td>yes</td>
</tr>
<tr>
<td><code>geofence</code>, <code>geoblock</code>, <code>region</code>, <code>not available in</code>, <code>territory</code></td>
<td><code>GEOFENCE</code> (403)</td>
<td>no</td>
</tr>
<tr>
<td><code>not found</code>, <code>404</code>, <code>does not exist</code>, <code>invalid id</code></td>
<td><code>NOT_FOUND</code> (404)</td>
<td>no</td>
+1 -1
View File
@@ -2545,7 +2545,7 @@
</tr>
</tbody>
</table>
<p>Validation is strict: invalid codecs, subtitle formats, dynamic-range names, non-positive counts, or mutually exclusive flags (for example both <code>video_only</code> and <code>audio_only</code>) come back as <code>400</code> with error code <code>INVALID_PARAMETERS</code>. See the full reference on the <a href="../endpoints/">download reference page</a> for every accepted field.</p>
<p>Validation is strict: invalid codecs, subtitle formats, dynamic-range names, non-positive counts, or flags that conflict (for example both <code>no_subs</code> and <code>subs_only</code>) come back as <code>400</code> with error code <code>INVALID_PARAMETERS</code>. See the full reference on the <a href="../endpoints/">download reference page</a> for every accepted field.</p>
<div class="admonition note">
<p class="admonition-title">Gated fields</p>
<p>The server refuses a per-request CDM (<code>cdm</code>) or inline credentials (<code>credential</code> / <code>credentials</code>) with <code>403 FORBIDDEN</code>, unless the server operator has explicitly opted in with <code>serve.cdm_overrides</code> and <code>serve.allow_job_credentials</code>. Both are off by default.</p>