mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 19:35:06 +00:00
feat(tracks): resolve a track url on use, locally and over remote
This commit is contained in:
@@ -954,7 +954,7 @@ POST /api/session/create → returns session_id, status "authenticating"
|
||||
GET /api/session/{id}/channel → WebSocket: prompts, CDM calls, logs, login state, drain
|
||||
GET /api/session/{id}/prompt → without the channel: poll until authenticated (submit answers via POST)
|
||||
GET /api/session/{id}/titles → list titles
|
||||
POST /api/session/{id}/tracks → tracks + chapters (with URLs) for one title
|
||||
POST /api/session/{id}/tracks → tracks + chapters (with URLs) for one title; a track that resolves its URL on use has resolve_url true and no URL
|
||||
POST /api/session/{id}/segments → resolve segment URLs / DRM / headers per track
|
||||
POST /api/session/{id}/segment_filter → HLS segments the service drops (ads, bumpers)
|
||||
POST /api/session/{id}/samples → decrypt cbcs samples of a track on the server
|
||||
|
||||
@@ -272,6 +272,12 @@ The main attributes include `url` (a string or list of strings), `language` (a
|
||||
descriptor-specific state stashed in `track.data["hls"]` / `track.data["dash"]`. If you
|
||||
do not give a `name`, unshackle derives a human-readable name from the language.
|
||||
|
||||
When each URL of a `URL` track costs a request, give the track an empty `url` and set
|
||||
`track.resolve_url` to a callable that returns the URL. unshackle calls it only for a
|
||||
track that it downloads. Over `--remote`, the client asks the server for the URL of
|
||||
each track it downloads, and the server calls the callable then. A track whose callable
|
||||
fails gets no URL, and its download fails.
|
||||
|
||||
### `Video`
|
||||
|
||||
`Video` adds `codec`, `range`, `bitrate`, `width`, `height`, `fps`, `scan_type`, and
|
||||
|
||||
Reference in New Issue
Block a user