timothy cf9d274bf5 fix(803,664): round 3 — the row guard used jq -e inside the one function that forbids it
Self-caught while verifying round 2 against the jq contract, before the re-review returned.

`count_pr_mutations` deliberately avoids `jq -e`, and says so at its `kind` read: `jq -e`
reports the truthiness of its LAST OUTPUT, which is the exit-status subtlety that already
took this workflow down at jq 1.6 (ersatztv#647), and the runner still ships 1.6. Round 2's
new row-validation guard was written with `jq -e` — inside that function, three lines below
the comment forbidding it.

It was safe, but only by accident: the guard runs after `n -eq 0` has returned, so the
array is known non-empty and the empty-input divergence the header warns about could not
fire. "Safe because of a property three lines up" is exactly the reasoning the local rule
exists to retire, and it is one refactor away from being false.

Rewritten in the function's own idiom — count the offending rows with `jq -r`, range-check
the count in shell — which cannot be read two ways and matches every other tally here.
`bad` is declared `local` alongside the other scratch variables.

Also re-ran the round-2 mutation for this guard properly. The first attempt replaced the
block with an unindented `:`, which broke the YAML block scalar: the test went red on a
ParserError rather than on behaviour, proving nothing. A mutant that does not parse is not
a measurement. With a correctly indented no-op the guard's test reddens for the right
reason.

Verification: 1117 passed, 2 skipped; ruff clean; decisions-validate OK; YAML + `bash -n`
clean; `count_pr_mutations` now contains no `jq -e` call, only the comments explaining why.

Decisions-Edit: yes
2026-08-28 23:22:08 +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%