mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs: sweep docs to zero ste_lint findings and one remote session name
This commit is contained in:
@@ -129,7 +129,7 @@ Field notes:
|
||||
| `needs_auth` | Whether the service overrides `authenticate()`. |
|
||||
| `has_search` | Whether the service supports `POST /api/search`. |
|
||||
| `anonymous_search` | Whether `POST /api/search` operates with no login for this service. The server then ignores `credentials` and `cookies` on a search. |
|
||||
| `has_drm` | Whether the service overrides a Widevine or PlayReady license hook. |
|
||||
| `has_drm` | Whether the service overrides a Widevine or PlayReady licence hook. |
|
||||
| `pending_update` | Set to `true` while a service repository refresh waits for this service's jobs to finish before it swaps in the new code. Absent otherwise. |
|
||||
| `server_accounts` | Present when the server lends its own accounts for this service: `{regions: ["ca", "gb"], global: bool}`, the regions those accounts cover. A client sends no credentials, cookies, or cache for such a service. |
|
||||
| `auth_methods` | Declared or inferred auth methods, e.g. `["cookies"]`, `["credentials"]`. |
|
||||
@@ -231,9 +231,7 @@ them in that mode.
|
||||
`credentials` (`{username, password, extra?}`) and `cookies` (base64 of a
|
||||
zlib-compressed Netscape cookie file) are the same as on
|
||||
[`POST /api/session/create`](remote-sessions.md#post-apisessioncreate). `cache` is a map of cache
|
||||
files in the same form: each cache key is the file path relative to the service cache
|
||||
directory, with `/` separators and no `.json` suffix, and each value is base64
|
||||
of the zlib-compressed file. The server writes these files into the request
|
||||
files in the form that [Cache files](remote-sessions.md#cache-files) gives. The server writes these files into the request
|
||||
cache directory before the service authenticates.
|
||||
|
||||
When you send `credentials`, `cookies` or `cache`, a successful response also
|
||||
@@ -273,13 +271,13 @@ server, uses the server's own cache and returns no `cache` field.
|
||||
}
|
||||
```
|
||||
|
||||
Each serialized title carries `type` (`"episode"`, `"movie"`, `"song"`, or `"other"`), `name`, `id`, `language`, `description`, `date`, and `cover_url`. Episodes and movies add `year`. Episodes also add `series_title`, `season`, and `number`.
|
||||
Each serialised title carries `type` (`"episode"`, `"movie"`, `"song"`, or `"other"`), `name`, `id`, `language`, `description`, `date`, and `cover_url`. Episodes and movies add `year`. Episodes also add `series_title`, `season`, and `number`.
|
||||
|
||||
!!! info "The number that `wanted` takes for a song"
|
||||
A song adds `year` and its music fields, such as `artist`, `album`, `disc`, `track` and
|
||||
`position`. `wanted` takes `position` when it is not `null`, else `disc` and `track` as in `"2x3"`.
|
||||
|
||||
These keys are sent only when the title carries them, so a title without them serializes exactly as before:
|
||||
These keys are sent only when the title carries them:
|
||||
|
||||
| Key | Type | On | Meaning |
|
||||
| --- | --- | --- | --- |
|
||||
@@ -1010,7 +1008,7 @@ The server serialises every structured error raised inside a handler to the same
|
||||
|
||||
The [error code catalogue](errors.md#error-code-catalogue) gives the default HTTP status of each error code.
|
||||
|
||||
When a generic (uncategorized) exception reaches a handler, unshackle inspects its message and type to pick a code. For example, messages mentioning "connection" or "timeout" become `NETWORK_ERROR` (424, retryable), "rate limit" or "429" become `RATE_LIMITED` (429, retryable), and anything unrecognized collapses to `INTERNAL_ERROR` (422).
|
||||
When a generic (uncategorised) exception reaches a handler, unshackle inspects its message and type to pick a code. For example, messages mentioning "connection" or "timeout" become `NETWORK_ERROR` (424, retryable), "rate limit" or "429" become `RATE_LIMITED` (429, retryable), and anything unrecognised collapses to `INTERNAL_ERROR` (422).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user