mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 13:05:08 +00:00
refactor(wire): put the tracks reply codec in wire and stamp service flags in serialize_title
This commit is contained in:
@@ -311,7 +311,7 @@ These keys are sent only when the title carries them, so a title without them se
|
||||
|
||||
### `POST /api/list-tracks`
|
||||
|
||||
Show the video, audio, and subtitle tracks for a title. For series, you can scope to specific episodes.
|
||||
Show the video, audio, and subtitle tracks for a title. For series, you can scope to specific episodes. Each `title` in the response has the form of a [`list-titles`](#post-apilist-titles) title, with the same service flags (`anime`, `daily`, `metadata_provider`).
|
||||
|
||||
!!! tip "Spotting the original-language audio"
|
||||
Each audio track carries `is_original`, which marks the track the default `lang` of `orig` 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 (`pt` marks `pt-BR` rather than `pt-PT`). Services need not report a title's language, so every track can legitimately come back `false`.
|
||||
@@ -1151,7 +1151,7 @@ Get tracks and chapters for a specific title within the remote session. Body: `{
|
||||
|
||||
### `POST /api/session/{session_id}/segments`
|
||||
|
||||
Get the download URL, DRM info, headers, cookies, and raw track data for the selected tracks. Body: `{ "track_ids": ["v-1", "a-1"] }` (required). A track that the tracks response sent with `resolve_url` 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 [Slow responses](#slow-responses).
|
||||
Get the download URL, DRM info, headers, cookies, and track data for the selected tracks. Body: `{ "track_ids": ["v-1", "a-1"] }` (required). A track that the tracks response sent with `resolve_url` 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 [Slow responses](#slow-responses).
|
||||
|
||||
=== "Response `200`"
|
||||
|
||||
@@ -1163,7 +1163,7 @@ Get the download URL, DRM info, headers, cookies, and raw track data for the sel
|
||||
}
|
||||
```
|
||||
|
||||
`cookies` gives names and values only. `cookie_jar` gives the same cookies with their domain, path and `secure` flag, in the `session_cookie_jar` form of the tracks response.
|
||||
`data` has the form of the track `data` in `list-tracks`: the JSON-safe part of the service-set `track.data`, without the `hls`, `dash`, and `ism` parser keys. `cookies` gives names and values only. `cookie_jar` gives the same cookies with their domain, path and `secure` flag, in the `session_cookie_jar` form of the tracks response.
|
||||
|
||||
| Status | Error code | Meaning |
|
||||
| --- | --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user