b1c2b9e18cceb4b52953b5d90e692cb4efa58363
Folds ersatztv#757 into this PR at the user's request, and fixes review round 2. Query-parameter parity (#757). A second test compares every tool's routed QueryParameters against the spec's parameters[in=query] -- reads included, because the drift was entirely on reads. `ersatztv_list_playouts` now declares `query` (case-insensitive substring on the CHANNEL name, per GetPagedPlayoutsHandler) and `ersatztv_get_playout_items` declares `showFiller` (per GetFuturePlayoutItemsByIdHandler's FillerKind.None filter). Those two were the complete drift set -- the guard reported them, not a hand audit. The test ACCUMULATES mismatches and asserts once, so one run reports the whole drift set. Failing on the first would hand back one tool at a time and invite fixing them one at a time, which is precisely how the #754 twin stayed hidden. Verified by mutation: dropping either newly declared parameter goes red, and a phantom query arg on a write tool goes red (the reviewer's round-1 finding 5, which was green before this). Review round 2 (CONFIRMED at UpdatePlayoutHandler.cs:31). My round-1 docs fix sorted the write tools into full-replace vs leave-unchanged and filed `ersatztv_update_playout` under leave-unchanged. It is MIXED: `scheduleFile` is leave-unchanged, but `DailyRebuildTime` is set to null unconditionally before a supplied value is re-applied, so setting scheduleFile while omitting dailyRebuildTime silently clears the daily reset. The paragraph written to prevent the #754 shape would have caused it on the one tool with mixed semantics. Now called out explicitly as the easy one to get wrong. Also from round 2, recorded rather than fixed: the type comparison is lossy at the catalog's ceiling (every object component collapses to `object`, every enum to `string`), so a swapped model or enum is invisible -- confirmed green when `logo` is repointed at an unrelated model. Deeper comparison would assert a distinction no tool schema carries, and an opaque object is copied through from a GET verbatim, so it cannot cause a silent clear. The >1 type-union assertion is deliberate but unexercised. The api-docs freshness conjunction covers a DTO's own properties only, not nested models outside ^ErsatzTV/Controllers/Api/. fixes #757 Decisions-Edit: yes
ErsatzTV
ErsatzTV lets you transform your media library into a personalized, live TV experience - complete with EPG, channel scheduling, and seamless streaming to all your devices. Rediscover your content, your way.
How It Works
- Install ErsatzTV: Download and set up the server on your system.
- Add Your Media: Connect your media libraries and collections.
- Create Channels: Design and schedule your own live channels.
- Stream Anywhere: Watch on any device with IPTV and EPG support.
Key Features
- Custom channels: Create and schedule your own live TV channels.
- IPTV & EPG: Stream with IPTV and Electronic Program Guide support.
- Hardware Transcoding: High-performance streaming with hardware acceleration (NVENC, QSV, VAAPI, AMF, VideoToolbox)
- Media Server Integration: Connect Plex, Jellyfin, Emby and more.
- Music & Subtitles: Mix music videos and enjoy subtitle support.
- Open Source: Free, open, and community-driven project.
Documentation
Documentation is available at ersatztv.org.
License
This project is inspired by pseudotv-plex and the dizquetv fork and is released under the zlib license.
