feat(tracks): resolve a track url on use, locally and over remote

This commit is contained in:
imSp4rky
2026-11-27 01:45:49 -07:00
parent 736f1cc731
commit 9901b62347
9 changed files with 198 additions and 8 deletions
+6
View File
@@ -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