Commit Graph
180 Commits
Author SHA1 Message Date
imSp4rky 7713f8df3f fix(api): stop serve cleanly with jobs, streams and remote sessions open 2026-11-28 21:11:50 -07:00
imSp4rky f5c8858e6e fix(remote): map a cut-off answer to a recoverable error and stop trusting an empty optional answer 2026-11-28 21:03:54 -07:00
imSp4rky fd1b9254ee fix(manifests): skip a DASH Representation or HLS variant with an unknown codec 2026-11-28 14:46:06 -07:00
imSp4rky daa9caa02b fix(api): check serve and service dl defaults at job admission 2026-11-28 14:32:31 -07:00
imSp4rky 5f675bd5ff fix(dash): license a track whose only key system is the W3C common PSSH as ClearKey 2026-11-28 14:29:36 -07:00
imSp4rky 4743e2f32c fix(events): emit TRACK_DOWNLOADED once per track after decryption 2026-11-28 14:15:31 -07:00
imSp4rky 053d83874d refactor(api): give every served service its dl options from the run plan 2026-11-28 14:02:44 -07:00
imSp4rky 63dd037ebd refactor(api): resolve service options once with requested_service_options 2026-11-28 13:44:57 -07:00
imSp4rky 32250f6f95 feat(session): open a websocket on the rnet session 2026-11-27 18:05:34 -07:00
imSp4rky 8a93b4f49a feat(console): read a QR code from a PNG with a pure decoder 2026-11-27 12:40:41 -07:00
imSp4rky 84751b1f9e refactor(proxies): apply a service proxy_map before the proxy resolves 2026-11-27 11:53:06 -07:00
imSp4rky f00f8cdc3c refactor(proxies): resolve every --proxy value through one shared entry 2026-11-27 10:59:53 -07:00
imSp4rky 9901b62347 feat(tracks): resolve a track url on use, locally and over remote 2026-11-27 01:45:49 -07:00
imSp4rky 736f1cc731 feat(drm): add the whole-file aes-ctr cipher and paged aac rewrite 2026-11-27 01:11:13 -07:00
imSp4rky 625e632b53 fix(api): cap the total size of a client cache upload and clean up after a refused session create 2026-11-26 13:40:05 -07:00
imSp4rky 7bba51910d fix(serve): close the developer dashboard when a config reload removes its key 2026-11-26 13:40:04 -07:00
imSp4rky 291417db4e feat(service): pass a qr code with a login prompt or approval wait 2026-11-26 13:27:50 -07:00
imSp4rky 251d1e779a fix(remote): load the server's first-listed cdm for a server-device option 2026-11-26 11:20:22 -07:00
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 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 fcda47d995 fix(api): let a core failure name its own API error code 2026-11-25 15:43:14 -07:00
imSp4rky 0fca1c5ea3 feat(remote): license each track locally with --cdm-only over remote 2026-11-25 12:31:44 -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 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 ed090affc3 feat(remote): add a session channel for the messages the server starts 2026-11-24 17:50:10 -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 3e8c63b067 refactor(remote): send every client call through RemoteClient 2026-11-24 16:52:44 -07:00
imSp4rky 8d5234130a refactor(remote): keep the session protocol in core/remote_protocol.py 2026-11-24 16:20:33 -07:00
imSp4rky 20ffaba626 fix(dash): trim audio that overlaps the next stitched period before decryption 2026-11-24 08:39:37 -07:00
Jakub Rybakowski 661be3ee0d feat(api): expose optional account-scoped title availability 2026-11-23 18:54:36 -06:00
imSp4rky 530f78ecf5 fix(chapters): drop duplicate timestamps in the EXAMPLE template and docs
Log a get_chapters failure at debug level on the API tracks route.
2026-11-23 14:01:58 -07:00
imSp4rky 138782f38b fix(manifests): rebase restarting timelines across dash periods and hls discontinuities
Shift tfdt of stitched DASH periods and HLS fVTT blocks, and WebVTT cues per period or block, so subtitles and timestamps stay in sync across ad breaks.
2026-11-23 10:51:40 -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 270662e9b2 fix(tracks): rank video picks by quality across regional tags and in hybrid
One video language request that matches several regional tags now gives one video, the best of them; hybrid bases and the DV source use the same pick, and hybrid --worst no longer needs -q. Thanks to reel.deal for the report and the first patch.
2026-11-15 15:54:21 -07:00
imSp4rky 511db0c768 feat(dl): let --worst run without -q and pick the lowest bitrate
--worst picks the lowest bitrate at each -q resolution, or at the lowest resolution when no -q is set. Hybrid mode still requires -q.

Thanks to reel.deal for the report and the first patch.
2026-11-15 15:14:14 -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 94dfb5d677 feat(subtitle): read scc closed captions and convert them before muxing
SCC goes straight to --sub-format when it is SRT, WebVTT or TTML, else to SRT; pycaption reads the CC1 channel, and an SCC with no CC1 captions warns. Raise the pycaption floor to 2.2.24 for its SCC reader fixes.
2026-11-13 14:09:16 -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 f85d7f5fa8 feat(subtitles): add --sub-font and subtitle.ass_style for converted ASS
Converted subtitles get one style on a 1080-line canvas shaped like the video; native SSA/ASS is never restyled.
2026-11-11 10:04:57 -07:00
imSp4rky 590a57113b feat(dl): add -ce/--continuous-episodes to number seasons on
Each season's episodes continue from the previous season's last episode (S02E05 after a four-episode S01); also on the REST API. A --remote get_tracks refresh no longer resets season, number and part.
2026-11-11 08:38:27 -07:00
imSp4rky d12bf31b6b feat(hybrid): generate Dolby Vision from the decoded video
--generate-dv now takes an HDR10 base and measures L1 with FFmpeg when there is no usable HDR10+ metadata. -r HDR10 or -r HDR10P with the flag runs as a hybrid of that base alone, --sample shifts the DV RPU to match the base, and the REST API accepts generate_dv with any range.
2026-11-10 05:30:03 -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 4b6d15cc2a feat(dl)!: treat a missing -sl language as a warning
A missing -sl language now warns and continues, with or without --best-available. --require-subs counts a forced track only when selection keeps it, and a title with no track left is skipped instead of failing at mux.

BREAKING CHANGE: a missing -sl subtitle language no longer fails the run. Use --require-subs to fail on it.
2026-11-09 15:01:54 -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 72b9c51b49 fix(attachment): download through the track downloader with its retries
A failed attachment now gets the same retries and resume as a track before it stops the run; same-named attachments no longer share a temp file.
2026-11-03 13:53:33 -07:00