Deployed 84751b1f with MkDocs version: 1.6.1

This commit is contained in:
2026-11-27 19:03:37 +00:00
parent 84edf1c7fa
commit fadb170226
8 changed files with 904 additions and 1034 deletions
+1 -1
View File
@@ -4977,7 +4977,7 @@ the newlines must go out at once.</p>
<p>Make a remote session for a service and title. Authentication runs asynchronously in the background. This call returns immediately with <code>status: "authenticating"</code>, and you then poll the prompt endpoint. The body accepts <code>service</code> and <code>title_id</code> (both required). It also accepts a broad set of optional keys, because the body allows <code>additionalProperties</code>. These are <code>credentials</code> (<code>{username, password, extra?}</code>), <code>cookies</code> (base64 of zlib-compressed Netscape cookie file), <code>proxy</code>, <code>no_proxy</code>, <code>profile</code>, <code>cache</code> (map of forwarded cache files, keyed by the file path relative to the service cache directory with <code>/</code> separators and no <code>.json</code> suffix, so a nested key such as <code>session_web/&lt;sha1&gt;</code> lands in a subdirectory), <code>client_region</code>, <code>proxy_region</code>, <code>cdm_type</code>, <code>range_</code>, <code>vcodec</code>, <code>quality</code>, <code>best_available</code>, <code>dl_params</code>, <code>client</code>, and any service CLI options. <code>proxy_region</code> is the country code the client resolved <code>proxy</code> from; the server matches it against its own accounts. <code>client</code> is a freeform object the dashboard shows as sent (the CLI puts <code>version</code>, <code>code_hash</code>, <code>platform</code> and a redacted <code>argv</code> in it); the server ignores it above 4096 bytes of JSON.</p>
<p><code>dl_params</code> is an object with the <code>dl</code> track selection: <code>lang</code>, <code>v_lang</code>, <code>a_lang</code> and <code>s_lang</code> (arrays of language strings), <code>acodec</code> (an array of audio codec names or <code>dl -a</code> aliases such as <code>ddp</code>), and <code>forced_subs</code> and <code>exact_lang</code> (booleans). The service reads these values from <code>ctx.parent.params</code>. The server uses the <code>dl</code> default for each absent or malformed value, and drops an unknown codec name.</p>
<p>Service CLI options also travel in a nested <code>service_params</code> object. When the body has <code>service_params</code>, the server reads service options only from it, and a flat key with the same name stays a <code>dl</code> value. <code>profile</code> at the top level always means the credentials profile, never a service's own <code>--profile</code> option.</p>
<p>The <code>proxy</code> value must be a full proxy URI, unless the operator gives your API key <code>server_proxy</code> in the <code>serve.users</code> config. Without <code>server_proxy</code>, a proxy URI gets <code>INVALID_PROXY</code> when its host is not a public address or is not a plain host name or IP address. Without <code>server_proxy</code>, the server does not resolve country codes with its own proxy providers. It rejects the request with <code>INVALID_PROXY</code> when no <code>proxy</code> is set and the reported <code>client_region</code> differs from the server's region. A request that reports no <code>client_region</code> is not blocked. Pass <code>proxy</code> with your own proxy, or <code>no_proxy</code> to accept the server's own connection. With <code>server_proxy</code>, the server resolves a country code and picks a proxy for your <code>client_region</code> itself. A Control D resolver, <code>controld://&lt;resolver&gt;@dns.controld.com</code>, counts as a full proxy URI: the server runs a forwarder for it and needs no Control D configuration of its own.</p>
<p>The <code>proxy</code> value must be a full proxy URI, unless the operator gives your API key <code>server_proxy</code> in the <code>serve.users</code> config. Without <code>server_proxy</code>, a proxy URI gets <code>INVALID_PROXY</code> when its host is not a public address or is not a plain host name or IP address. Without <code>server_proxy</code>, the server does not resolve country codes with its own proxy providers. It rejects the request with <code>INVALID_PROXY</code> when no <code>proxy</code> is set and the reported <code>client_region</code> differs from the server's region. A request that reports no <code>client_region</code> is not blocked. Pass <code>proxy</code> with your own proxy, or <code>no_proxy</code> to accept the server's own connection. With <code>server_proxy</code>, the server resolves a country code and picks a proxy for your <code>client_region</code> itself. A Control D resolver, <code>controld://&lt;resolver&gt;@dns.controld.com</code>, counts as a full proxy URI: the server runs a forwarder for it and needs no Control D configuration of its own. A proxy URI needs an <code>http</code>, <code>https</code> or <code>socks</code> scheme: the server answers <code>INVALID_PROXY</code> to a <code>host:port</code> value, also with <code>server_proxy</code>.</p>
<div class="tabbed-set tabbed-alternate" data-tabs="20:1"><input checked="checked" id="__tabbed_20_1" name="__tabbed_20" type="radio" /><div class="tabbed-labels"><label for="__tabbed_20_1">Response <code>200</code></label></div>
<div class="tabbed-content">
<div class="tabbed-block">
+2 -3
View File
@@ -2818,9 +2818,8 @@ up the objects your methods rely on:</p>
</tr>
</tbody>
</table>
<p>The constructor also resolves proxies: it reads <code>--proxy</code> and the <code>proxy_query</code> and
<code>proxy_provider</code> context params that <code>dl</code> and <code>search</code> derive from it, consults the per-service
<code>proxy_map</code>, and, if <code>GEOFENCE</code> is set and you did not give an explicit proxy, does a live
<p>The constructor also resolves proxies: it reads <code>--proxy</code>, which <code>dl</code> and <code>search</code> have already
resolved through the per-service <code>proxy_map</code>, and, if <code>GEOFENCE</code> is set and you did not give an explicit proxy, does a live
IP check and auto-fetches a proxy to <code>GEOFENCE[0]</code> when it detects a geoblock. A
<code>GEOBLOCK</code> hit with no <code>GEOFENCE</code> stops the run with a "not available in your region"
error, because there is no main region to fetch a proxy for; pass <code>--proxy</code> yourself.
+6 -4
View File
@@ -2849,7 +2849,8 @@ them in this order.</p>
<li><strong>An explicit URI.</strong> unshackle uses anything shaped like <code>http://...</code>,
<code>https://...</code>, or a <code>socks...</code> URI exactly as you give it. unshackle logs
<code>Using explicit Proxy: ...</code> and does no lookup. A <code>host:port</code> value such as
<code>localhost:8080</code> is also an explicit proxy.</li>
<code>localhost:8080</code> is also an explicit proxy. A server (<code>--remote</code> or the REST API)
refuses a proxy that has no <code>http</code>, <code>https</code> or <code>socks</code> scheme.</li>
<li><strong>A provider-prefixed query</strong>: <code>provider:query</code>, for example <code>nordvpn:us</code> or
<code>gluetun:windscribe:us</code>. unshackle finds the proxy provider whose name matches
the prefix (case-insensitive). It then asks <em>only</em> that proxy provider to find a
@@ -3957,9 +3958,10 @@ sure that a username and a password are present (there is no 48-character rule).
providers through <code>load_proxy_providers()</code> in <code>unshackle/core/proxies/resolve.py</code>.
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>
resolver.</p>
local Docker container. All paths read a value through <code>resolve_proxy_value()</code>, which
returns the proxy URI with the proxy provider, the query and the log line: a
<code>controld://</code> resolver, a <code>provider:query</code> or a bare query tried against providers in
order, or else an explicit proxy URI or <code>host:port</code>.</p>
<p>The remote-service client resolves <code>--proxy</code> with its own
<code>resolve_remote_proxy_arg()</code>. It changes a <code>controld:</code> query to a <code>controld://</code>
resolver for the server with <code>get_remote_proxy()</code>, and it removes Control D from a bare
+1 -1
View File
@@ -2683,7 +2683,7 @@
</tbody>
</table>
<p>You must supply either <code>password</code> or <code>api_key</code>, or the vault will fail to load.</p>
<p>A host that answers with a body that is not a JSON object, for example a parked domain or a login page, is unreachable. unshackle logs one warning, skips the vault for the rest of the run, and the <code>serve</code> health check reports the vault as failed. In json mode, HTTP 404 is the exception: it means that the vault has no entry. In decrypt_labs mode, an error status is a miss.</p>
<p>A host that answers with a body that is not a JSON object, for example a parked domain or a login page, is unreachable. unshackle logs one warning, skips the vault for the rest of the run, and the <code>serve</code> health check reports the vault as failed. In json mode, HTTP 404 to a lookup is the exception: it means that the vault has no entry. In decrypt_labs mode, an error status other than 429 is a miss.</p>
<hr />
<h2 id="api-backend">API backend<a class="headerlink" href="#api-backend" title="Permanent link">&para;</a></h2>
<p>A simple RESTful HTTP vault with a fixed, well-defined protocol. Authentication is a bearer token.</p>
BIN
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -2102,9 +2102,10 @@
<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.
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><strong><code>proxy_map</code></strong>: remaps the region query you passed to <code>--proxy</code> for this service.
A config key is that query, or <code>"provider:query"</code> when the flag also named a proxy provider, in any case. The value is
the query asked of the proxy provider instead. When no proxy provider answers it, unshackle logs a warning and asks
the original query. It has no effect when you give <code>--proxy</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>
File diff suppressed because one or more lines are too long