Commit Graph
188 Commits
Author SHA1 Message Date
imSp4rky ee8e968127 refactor(api): admit download job create and retry through one job_admission step 2026-11-25 23:15:16 -07:00
imSp4rky 92e8abbdbc refactor(core): one TitleSource base for Service, remote and import 2026-11-25 21:46:55 -07:00
imSp4rky 9febbb20c5 refactor(api): answer every API key question from one KeyPolicy 2026-11-25 21:14:09 -07:00
imSp4rky 5b96918b7e test: stop five API option tests reading the local config and binaries. 2026-11-25 17:01:15 -07:00
imSp4rky 35e0d827fa fix(api): leave Gluetun out of a server download job's proxy providers 2026-11-25 16:53:02 -07:00
imSp4rky 2734177d94 fix(api): keep the error code a download failure names in the job error 2026-11-25 16:45:51 -07:00
imSp4rky d8058a3610 style: turn on ruff UP and B rules and fix every finding 2026-11-25 16:34:09 -07:00
imSp4rky 4d3df8e74f refactor(dl): check dl options once in a run plan shared by the CLI and the REST download job 2026-11-25 16:16:43 -07:00
imSp4rky 7838226590 fix(core): load every service config through one launch-context function 2026-11-25 16:14:21 -07:00
imSp4rky fcda47d995 fix(api): let a core failure name its own API error code 2026-11-25 15:43:14 -07:00
imSp4rky fba28198d0 refactor(core): move login state to core.login and load key vaults through one factory 2026-11-25 15:31:37 -07:00
imSp4rky b6c6d317a9 fix(cdm): keep remote CDM state per session in one shared HttpCdm base 2026-11-25 14:50:42 -07:00
imSp4rky 0a1a7d759f fix(remote): license a server-CDM track through ServerKeySource 2026-11-25 14:50:41 -07:00
imSp4rky 6923c5e242 fix(cdm): read every device's DRM system through one CDM catalogue 2026-11-25 14:50:40 -07:00
imSp4rky 0fca1c5ea3 feat(remote): license each track locally with --cdm-only over remote 2026-11-25 12:31:44 -07:00
imSp4rky 65e9d1a8c5 test: run the DASH merge tests without ffprobe and wait for the drain to end 2026-11-24 20:10:46 -07:00
imSp4rky e30db081c8 refactor(core): write a service's launch keys through one module 2026-11-24 19:28:12 -07:00
imSp4rky 43987f9809 refactor(api): build a remote session whole, with one login state 2026-11-24 19:26:26 -07:00
imSp4rky 1be56b15b3 refactor(cdm): read a cdm entry for device and DRM system in one module 2026-11-24 19:25:26 -07:00
imSp4rky 2dfed221d5 feat(remote): warn when the client cache has more files than a server takes 2026-11-24 18:53:38 -07:00
imSp4rky 126283b256 fix(api): take 256 cache files and an 8 MiB body on the login routes 2026-11-24 18:53:38 -07:00
imSp4rky cdeeba17ab fix(remote): close a session channel whose loop already ended 2026-11-24 18:30:58 -07:00
imSp4rky 83e5c88f6f refactor(api): answer a route's uncaught exception in one decorator 2026-11-24 18:22:53 -07:00
imSp4rky ed090affc3 feat(remote): add a session channel for the messages the server starts 2026-11-24 17:50:10 -07:00
imSp4rky 172b76bd76 fix(api): redact every form of a configured credential from job errors 2026-11-24 17:13:17 -07:00
imSp4rky 4692e6bb96 fix(drm): end a licence with no usable key in one line for every DRM system 2026-11-24 17:13:08 -07:00
imSp4rky d954f61100 fix(api): evict a session of the key that holds the most at max_sessions 2026-11-24 16:56:21 -07:00
imSp4rky 7735c43061 fix(remote): answer malformed input with one line and keep secrets out of logs 2026-11-24 16:56:17 -07:00
imSp4rky 3e8c63b067 refactor(remote): send every client call through RemoteClient 2026-11-24 16:52:44 -07:00
imSp4rky 5ab60b8879 fix(remote): send a service option under its served name 2026-11-24 16:47:45 -07:00
imSp4rky 8d5234130a refactor(remote): keep the session protocol in core/remote_protocol.py 2026-11-24 16:20:33 -07:00
imSp4rky 6c334d31a7 refactor(api): keep the dl option facts in one table in core/dl_options.py 2026-11-24 15:14:38 -07:00
imSp4rky bbe58930b5 refactor(dl): move content-key resolution into core/drm/key_resolution.py 2026-11-24 14:44:47 -07:00
imSp4rky 55138f95c2 refactor(core): move the title, track and DRM wire form into core/wire.py 2026-11-24 14:37:51 -07:00
Jakub Rybakowski 661be3ee0d feat(api): expose optional account-scoped title availability 2026-11-23 18:54:36 -06:00
imSp4rky c818ec3bbe fix(api): refuse deeply nested cache payloads by depth, not RecursionError 2026-11-23 17:50:50 -07:00
imSp4rky 9693cbd39c fix(api): convert quality to heights for remote sessions
A string or zero -q from a REST client reached the service as raw text; it now gets the same checked height list as dl.
2026-11-16 14:44:47 -07:00
imSp4rky f1e4081313 feat(serve): per-api-key cdm and service config with server-side identity cache
serve.users.<key>.cdm and service_config give each API key its own device and service config. Service.IDENTITY_CACHE keys route to a per-key directory that clients never receive
2026-11-16 13:31:17 -07:00
imSp4rky 856a193061 feat(tracks): support HDR Vivid and Audio Vivid
Add Video.Range.VIVID and Audio.Codec.AV3A, found by the first-segment probe (CUVA SEI, MPEG-TS cuvv/AVSA/0xD5); sort videos by standard resolution, then bitrate; drop service names left in core and tests. Closes #179
2026-11-14 22:03:13 -07:00
imSp4rky 7a5ad5024a feat(music): pick the song container from the codec in the downloaded file
FFprobe sets the codec; DTS goes to .mka, PCM to .flac or .wav, AC-4/MPEG-H/DTS-UHD to MP4Box. The remux also cuts --sample, --no-mux no longer applies to a Song, and the tagger adds cover fallback, WebP, ARTISTS and ReplayGain. Song tag data now reaches a --remote client.
2026-11-14 19:58:21 -07:00
imSp4rky 6964f58271 feat(dl): add --skip-missing to skip titles that miss a required language or track
A season run skips such a title and continues; one title, or a run that skips every title, still exits 1 (now also for -ado/-fso). REST jobs report skipped_titles.
2026-11-13 18:30:01 -07:00
imSp4rky 7f91a1d36b feat(drm): license a track only when its own KID has no key
A vault key for the track's KID now stands in for the licence on the client and the server (PlayReady included). decrypt_verified licenses any other header KID the file uses.
2026-11-12 18:03:16 -07:00
imSp4rky 16fbf5d17a fix(remote): report each handled remote error once, from the code that catches it
A caught RemoteError now logs at debug under quiet(); a recovered licence prints one warning, only when the track's own key is held.
2026-11-12 17:15:40 -07:00
imSp4rky dc18b23b91 fix(remote): keep vault keys when a relayed licence is refused
proxy_license now raises ClickException instead of RemoteError (a SystemExit), so dl falls back to the track's vault key; licence messages name the track ("video 360p DV (592464997)").
2026-11-12 16:14:34 -07:00
imSp4rky e29a523907 feat(tracks): download and mux stereoscopic 3D (MV-HEVC) video to MP4
Mark 3D from REQ-VIDEO-LAYOUT, DV profile 20 codecs or an lhvC box; mux with MP4Box, decrypt with mp4decrypt, skip FFmpeg repack, sample cut and hybrid; add {3d} and env MP4Box.
2026-11-12 04:47:18 -07:00
imSp4rky b4418fa731 test: install the EXAMPLE service through a fixture, not the live config
Two tests failed when the local unshackle.yaml left out the in-repo services folder.
2026-11-09 20:04:28 -07:00
imSp4rky 6f9ab94536 feat(tunnel): route --local-proxy through a typed --proxy
The client dials the server's targets through the proxy (http/https CONNECT or SOCKS5, with login), with the same target checks and no direct fallback. tunnel-test takes --proxy too.
2026-11-09 19:38:01 -07:00
imSp4rky b10fd2d3a4 feat(tunnel): free finished tunnels at once and wait out 429s on --remote
A tunnel closed with code 1000 is freed without the 60s grace, a shared: true API key counts tunnels per X-Client-Id, and --remote waits out Retry-After and a full tunnel cap with a countdown; responses carry X-RateLimit-* headers.
2026-11-09 15:43:33 -07:00
imSp4rky b3d586a590 feat(api): carry the service catalogue on /api/dashboard/services
Rows now include the /api/services fields (help, cli_params, auth_methods, ...) and server_accounts. Both routes build the catalogue off the event loop, and an enum choice or a non-JSON list default no longer fails the whole route.
2026-11-03 18:27:49 -07:00
imSp4rky 87ccd6666c fix(api)!: key the health route and keep server internals from user keys
/api/health needs X-Secret-Key but stays outside the rate limit. Only the admin key gets load_errors from /api/services, default error details no longer name the exception class, and a prepare signal replaces aiohttp's Server banner on every response while the CDM routes keep their own.
2026-11-03 11:53:55 -07:00