timothy b1c2b9e18c fix(757): guard query parameters on every tool, and reclassify update_playout as mixed
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
2026-08-06 21:43:34 +02:00
2022-04-28 06:56:01 -05:00
2025-11-11 06:12:46 -06:00
2021-02-08 21:13:53 -06:00
2023-08-13 09:33:33 -05:00
2025-11-26 10:49:01 -06:00
2026-02-24 15:27:51 -06:00

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.

contact features community

epg-example

How It Works

  1. Install ErsatzTV: Download and set up the server on your system.
  2. Add Your Media: Connect your media libraries and collections.
  3. Create Channels: Design and schedule your own live channels.
  4. 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.

S
Description
Fork of ErsatzTV - custom IPTV channel server (upstream archived Feb 2026)
Readme Zlib
79 MiB
v26.11.0
Latest
2026-07-20 22:22:04 +02:00
Languages
C# 64.6%
TypeScript 15.7%
Python 10.1%
JavaScript 5.8%
Shell 2.6%
Other 1.1%