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>
+1
View File
@@ -3458,6 +3458,7 @@ wrong colours.</p>
<li>unshackle writes the chapters from the title's chapter list (see <a href="#chapters-naming">Chapters</a> below).</li>
</ul>
<p>The <code>--no-mux</code> flag skips muxing entirely and writes the individual track files, each with a track-type suffix, into the same output/folder structure. An audio track in an MP4 container gets the <code>.m4a</code> extension. A track that shaka-packager decrypts has its date set to 1970-01-01; other tracks keep the date of the source file.</p>
<p>Two output files of one title never get the same name. When a name is already in use, the second file gets the separator of the output template and a number, starting at 2. For example, an audio-description track in the same language and codec as the main audio is saved as <code>&lt;name&gt;.en.AAC.2.m4a</code>. With <code>--split-audio</code>, a muxed file whose name is already on disk first gets the name of its audio codec.</p>
<h2 id="sample-files">Sample files<a class="headerlink" href="#sample-files" title="Permanent link">&para;</a></h2>
<p><a href="../cli-reference/#output-muxing-files"><code>--sample</code></a> and <code>--include-sample</code> write a sample into a
<code>Sample</code> folder inside the output folder of the title. The sample keeps the filename of the
+7 -9
View File
@@ -3355,6 +3355,12 @@ Give <code>--remote</code> a proxy the server can reach, or run the service loca
machine (a <code>remote_services</code> URL on <code>127.0.0.1</code>) can reach a local proxy, so it is exempt.</p>
</div>
<div class="admonition warning">
<p class="admonition-title">Not available on a server</p>
<p><code>unshackle serve</code> does not load Gluetun. A REST API request, a download job and a
remote session cannot use a <code>gluetun:</code> proxy, also for an API key with <code>server_proxy</code>.
Use Gluetun with <code>dl</code> or <code>search</code> on your own machine.</p>
</div>
<div class="admonition warning">
<p class="admonition-title">Docker is required</p>
<p>Gluetun needs a working <a href="https://docs.docker.com/get-docker/">Docker</a> installation on
your <code>PATH</code>. If Docker is not found, the proxy provider fails to load. The container also needs the <code>NET_ADMIN</code> capability and access
@@ -3944,20 +3950,12 @@ sure that a username and a password are present (there is no 48-character rule).
</tbody>
</table>
<p>The returned proxy is HTTPS on <strong>port 443</strong>.</p>
<div class="admonition warning">
<p class="admonition-title">Windscribe is not loaded by the REST API resolver</p>
<p>The <code>dl</code> command loads the standalone Windscribe proxy provider (and Gluetun), but
the proxy resolver that the REST API and the remote-download client use does <strong>not</strong>.
If you drive downloads through the API and need Windscribe or Gluetun exits, get the
proxy on the CLI side, or use a different proxy provider for API jobs. See the
developer note below.</p>
</div>
<h2 id="developer-notes">Developer notes<a class="headerlink" href="#developer-notes" title="Permanent link">&para;</a></h2>
<div class="admonition note">
<p class="admonition-title">One resolution path (developers)</p>
<p><code>dl</code>, <code>search</code>, the REST API handlers and the remote-service client all load proxy
providers through <code>load_proxy_providers()</code> in <code>unshackle/core/proxies/resolve.py</code>.
The REST API and the remote-service client call it through
The REST API, its download jobs and the remote-service client call it through
<code>initialize_proxy_providers()</code>, which leaves out Gluetun because Gluetun starts a
local Docker container. All paths accept the same query grammar: a direct URI, a
<code>provider:query</code>, a bare query tried against providers in order, or a <code>controld://</code>
+161 -8
View File
@@ -3972,7 +3972,7 @@ the <code>m3u8</code> library.</p>
<code>session</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.session.AnySession">AnySession</span>]</code>
<code><span title="unshackle.core.session.AnySession">AnySession</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -4127,6 +4127,23 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-children">
</div>
</div>
</div>
@@ -4158,6 +4175,23 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-children">
</div>
</div>
</div>
@@ -4189,6 +4223,23 @@ here as a JWK Set keyed by KID, and the media is standard CENC
<div class="doc doc-children">
</div>
</div>
</div>
@@ -4395,7 +4446,7 @@ directly, and a WASM module extracts the content keys locally.</p>
<code>ticket</code>
</td>
<td>
<code><span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="bytes">bytes</span>]</code>
<code><span title="str">str</span> | <span title="bytes">bytes</span></code>
</td>
<td>
<div class="doc-md-description">
@@ -4427,7 +4478,7 @@ directly, and a WASM module extracts the content keys locally.</p>
<code>tool_path</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="pathlib.Path">Path</span>]</code>
<code><span title="pathlib.Path">Path</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -4637,7 +4688,7 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<tbody>
<tr class="doc-section-item">
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -4787,6 +4838,23 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<div class="doc doc-children">
</div>
</div>
</div>
@@ -4818,6 +4886,23 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<div class="doc doc-children">
</div>
</div>
</div>
@@ -4888,7 +4973,7 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<code>ticket</code>
</td>
<td>
<code><span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="bytes">bytes</span>]</code>
<code><span title="str">str</span> | <span title="bytes">bytes</span></code>
</td>
<td>
<div class="doc-md-description">
@@ -4920,7 +5005,7 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<code>tool_path</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="pathlib.Path">Path</span>]</code>
<code><span title="pathlib.Path">Path</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5010,7 +5095,7 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<code>output_path</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="pathlib.Path">Path</span>]</code>
<code><span title="pathlib.Path">Path</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5077,7 +5162,7 @@ H5DCID-V3-P1-YYYYMMDD-HHMMSS-MEDIAID-TIMESTAMP-SUFFIX</p>
<code>output_path</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="pathlib.Path">Path</span>]</code>
<code><span title="pathlib.Path">Path</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5747,6 +5832,23 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-children">
</div>
</div>
</div>
@@ -5778,6 +5880,23 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-children">
</div>
</div>
</div>
@@ -5809,6 +5928,23 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-children">
</div>
</div>
</div>
@@ -5840,6 +5976,23 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
<div class="doc doc-children">
</div>
</div>
</div>
File diff suppressed because it is too large Load Diff
+31 -31
View File
@@ -5221,7 +5221,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>path</code>
</td>
<td>
<code><span title="typing.Union">Union</span>[<span title="pathlib.Path">Path</span>, <span title="str">str</span>, None]</code>
<code><span title="pathlib.Path">Path</span> | <span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5237,7 +5237,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>url</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5253,7 +5253,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>name</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5269,7 +5269,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>mime_type</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5285,7 +5285,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>description</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5301,7 +5301,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>session</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.session.AnySession">AnySession</span>]</code>
<code><span title="unshackle.core.session.AnySession">AnySession</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5483,7 +5483,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>name</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5499,7 +5499,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>mime_type</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5515,7 +5515,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>description</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5531,7 +5531,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>session</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.session.AnySession">AnySession</span>]</code>
<code><span title="unshackle.core.session.AnySession">AnySession</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5557,7 +5557,7 @@ If mime_type is not provided, it will try to guess it.</p>
<tbody>
<tr class="doc-section-item">
<td><code>Attachment</code></td> <td>
<code>&#39;Attachment&#39;</code>
<code><a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Attachment&lt;/span&gt; (&lt;code&gt;unshackle.core.tracks.attachment.Attachment&lt;/code&gt;)" href="#unshackle.core.tracks.Attachment">Attachment</a></code>
</td>
<td>
<div class="doc-md-description">
@@ -5626,7 +5626,7 @@ If mime_type is not provided, it will try to guess it.</p>
<code>codec</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Codec&lt;/span&gt; (&lt;code&gt;unshackle.core.tracks.audio.Audio.Codec&lt;/code&gt;)" href="#unshackle.core.tracks.Audio.Codec">Codec</a>]</code>
<code><a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Codec&lt;/span&gt; (&lt;code&gt;unshackle.core.tracks.audio.Audio.Codec&lt;/code&gt;)" href="#unshackle.core.tracks.Audio.Codec">Codec</a> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5643,7 +5643,7 @@ replaces it with the codec FFprobe reads from the downloaded file.</p>
<code>bitrate</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="int">int</span>, <span title="float">float</span>]]</code>
<code><span title="str">str</span> | <span title="int">int</span> | <span title="float">float</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5660,7 +5660,7 @@ unshackle rounds float values up to the nearest integer.</p>
<code>channels</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="int">int</span>, <span title="float">float</span>]]</code>
<code><span title="str">str</span> | <span title="int">int</span> | <span title="float">float</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5678,7 +5678,7 @@ not supported. All numbers and strings will be cast to float.</p>
<code>joc</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="int">int</span>]</code>
<code><span title="int">int</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -5694,7 +5694,7 @@ not supported. All numbers and strings will be cast to float.</p>
<code>descriptive</code>
</td>
<td>
<code><span title="typing.Union">Union</span>[<span title="bool">bool</span>, <span title="int">int</span>]</code>
<code><span title="bool">bool</span> | <span title="int">int</span></code>
</td>
<td>
<div class="doc-md-description">
@@ -6378,7 +6378,7 @@ For example, <code>"Chapter {i:02}"</code> will result in <code>"Chapter 01"</co
<code>path</code>
</td>
<td>
<code><span title="typing.Union">Union</span>[<span title="pathlib.Path">Path</span>, <span title="str">str</span>]</code>
<code><span title="pathlib.Path">Path</span> | <span title="str">str</span></code>
</td>
<td>
<div class="doc-md-description">
@@ -6789,7 +6789,7 @@ shot takes the leading frames that the decoder drops.</p>
<code>codec</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.tracks.subtitle.Subtitle.Codec">Codec</span>]</code>
<code><span title="unshackle.core.tracks.subtitle.Subtitle.Codec">Codec</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -8665,7 +8665,7 @@ of <code>get_init_segment</code> to find the Key ID.</p>
<tbody>
<tr class="doc-section-item">
<td>
<code><span title="typing.Optional">Optional</span>[<span title="uuid.UUID">UUID</span>]</code>
<code><span title="uuid.UUID">UUID</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -8838,7 +8838,7 @@ is larger than it. Use a value of 20000 (20KB) or higher.</p>
<code>url</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -8854,7 +8854,7 @@ is larger than it. Use a value of 20000 (20KB) or higher.</p>
<code>byte_range</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="str">str</span>]</code>
<code><span title="str">str</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -8870,7 +8870,7 @@ is larger than it. Use a value of 20000 (20KB) or higher.</p>
<code>session</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.session.AnySession">AnySession</span>]</code>
<code><span title="unshackle.core.session.AnySession">AnySession</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9450,7 +9450,7 @@ instead of the filename if set.</p>
<code>progress</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="functools.partial">partial</span>]</code>
<code><span title="functools.partial">partial</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9484,7 +9484,7 @@ decide if it adds embedded audio metadata.</p>
<code>title_language</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="langcodes.Language">Language</span>]</code>
<code><span title="langcodes.Language">Language</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9517,7 +9517,7 @@ for audio metadata when multiple video tracks exist.</p>
<code>output_path</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="pathlib.Path">Path</span>]</code>
<code><span title="pathlib.Path">Path</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9598,7 +9598,7 @@ share a video list must pass distinct paths to avoid clobbering each other.</p>
<code>codec</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="unshackle.core.tracks.video.Video.Codec">Codec</span>]</code>
<code><span title="unshackle.core.tracks.video.Video.Codec">Codec</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9616,7 +9616,7 @@ after it downloads the track.</p>
<code>range_</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Range&lt;/span&gt; (&lt;code&gt;unshackle.core.tracks.video.Video.Range&lt;/code&gt;)" href="#unshackle.core.tracks.Video.Range">Range</a>]</code>
<code><a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Range&lt;/span&gt; (&lt;code&gt;unshackle.core.tracks.video.Video.Range&lt;/code&gt;)" href="#unshackle.core.tracks.Video.Range">Range</a> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9633,7 +9633,7 @@ Defaults to SDR if not specified.</p>
<code>bitrate</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="int">int</span>, <span title="float">float</span>]]</code>
<code><span title="str">str</span> | <span title="int">int</span> | <span title="float">float</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9650,7 +9650,7 @@ unshackle rounds float values up to the nearest integer.</p>
<code>width</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="int">int</span>]</code>
<code><span title="int">int</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9666,7 +9666,7 @@ unshackle rounds float values up to the nearest integer.</p>
<code>height</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="int">int</span>]</code>
<code><span title="int">int</span> | None</code>
</td>
<td>
<div class="doc-md-description">
@@ -9682,7 +9682,7 @@ unshackle rounds float values up to the nearest integer.</p>
<code>fps</code>
</td>
<td>
<code><span title="typing.Optional">Optional</span>[<span title="typing.Union">Union</span>[<span title="str">str</span>, <span title="int">int</span>, <span title="float">float</span>]]</code>
<code><span title="str">str</span> | <span title="int">int</span> | <span title="float">float</span> | None</code>
</td>
<td>
<div class="doc-md-description">
+3 -2
View File
@@ -2350,8 +2350,9 @@ providers and their exit ports:</p>
</table>
<div class="admonition note">
<p class="admonition-title">Provider loading differs between CLI and REST server</p>
<p>The <code>dl</code> CLI loads all providers, including <code>gluetun</code>. The REST API / remote-client path
does <strong>not</strong> load <code>gluetun</code>, because it starts a local Docker container. ExpressVPN and ProtonVPN also auto-load when their cached session exists, and Hola
<p>The <code>dl</code> and <code>search</code> commands load all providers, including <code>gluetun</code>. A server (REST API
requests, download jobs and remote sessions) and the remote client do <strong>not</strong> load <code>gluetun</code>,
because it starts a local Docker container. ExpressVPN and ProtonVPN also auto-load when their cached session exists, and Hola
auto-loads whenever the <code>hola-proxy</code> binary is present.</p>
</div>
+1 -1
View File
@@ -2099,7 +2099,7 @@
<ul>
<li><strong>Type:</strong> <code>dict</code> keyed by service tag &nbsp;·&nbsp; <strong>Default:</strong> <code>{}</code></li>
</ul>
<p>Per-service configuration, keyed by the canonical service tag (for example <code>EXAMPLE1</code>, <code>EXAMPLE2</code>,
<p>Per-service configuration, keyed by the service tag in any case (for example <code>EXAMPLE1</code>, <code>EXAMPLE2</code>,
<code>EXAMPLE3</code>). unshackle reads several well-known sub-keys out of each service's block:</p>
<ul>
<li><strong><code>proxy_map</code></strong>: remaps the region query you passed to <code>-p/--proxy</code> for this service.
File diff suppressed because one or more lines are too long