Sport channels
Design agreed 2026-09-27; built the same day. It follows phase 3 of channel-feeds.md: event channels already take their category from several logins. This makes them sport channels: all the NFL, from whichever folders and providers carry it.
What the providers actually do #
Surveyed on Trex and Strong on 2026-09-27. Real titles are in sport-examples.json.
- Event folders are mostly grouped by streaming service, not by sport. They include ESPN+ (600 slots), FLO (1,000), Peacock, BTN+, DAZN, Paramount+, TSN+ and Stan. Only a few are single-sport: NFL PPV / NFL PACKAGE, MLB, WNBA, UFC, MLS, MiLB, CFL and AFL.
- One game shows up in many places. On one Sunday, NFL games were in NFL PPV, Peacock, ESPN+, DAZN ("NFL Game Pass" in the league field), and misfiled under SOCCER PPV. SNF was in both NFL PPV and Peacock, on both logins.
- The two logins carry the same upstream slots. "US (ESPN+ 001) | …" has the same name on both, so pairing across logins is mostly exact.
- Team names alone sort games wrong. "Rugby 11: Raiders vs Broncos" is NRL, "Scottish Cup 2: Rangers vs Queen's Park" is football, and "Baseball: Rangers vs. Twins" isn't hockey. "WSBK" is a Boston TV station as well as Superbike.
EventParserreads about 5 of roughly 12 title formats (see Phase 0).- About 70% of the event folders are in English regions (US, UK, CA, IE, AU).
- Motorsport comes as always-on channels, not slots. Examples are UK MOTOGP AMBIENT, HELI, OB1 and OB2 on Trex, and MOTO GP RAW on both. They're only live on race weekends.
Phase 0: read every title format #
Stands alone; do it first. Existing event channels benefit straight away.
EventParser reads the slot, start:/stop: stamps, "@ Aug 14 7:00 PM" and a
leading clock ("SNF 8:20pm"). It fails on these, which cover most service folders
(the result is nothing, or a garbage title like "ET (2026-09-27 …)"):
| Format | Example |
|---|---|
| Service slot + trailing stamp | US (ESPN+ 001) | Valladolid vs. Cordoba Sep 27 7:50AM ET (2026-09-27 07:50:44) |
| Same, with the service in parens | (US) (BTN+ 043) | Soccer (W): UCLA at Oregon (2026-10-02 20:50:00), (Apple) (MLS) 001 | Columbus vs. Miami (…), (FLSP 151) | fc: Catawba vs Tusculum _ Men's (…) (…) |
| DAZN / FIFA+ / Staige status rows | Next | Chiefs @ Dolphins | NFL Game Pass | 2026-09-27 | 17:00 (GMT) | 8K EXCLUSIVE | …, NEXT | THAILAND VS. VIETNAM | Tue 29 Sep 08:30 EDT (US) | … |
| UK and ET times | National League 4 | Carlisle vs Woking // UK Sat 26 Sep 3:00pm // ET Sat 26 Sep 10:00am |
| Trailing "@ time :Service NN" | NASCAR: No 88 Connor Zilisch @ Sep 27 14:45 PM :MAX US 17, Harris, Lloyd vs Hurkacz, Hubert @ Sep 27 10:30 AM - ATP Chengdu :Tennis 10 |
| Labelled fields | wnba: 1 name: Minnesota Lynx (MIN) x New York Liberty (NYL) start:… stop:… |
| Pipe-separated fields | Matchroom Event 02: British Open 2024 - Day 3 | The Centaur, Cheltenham | snooker | Wed 25 Sep 9:00:00 AM |
- Placeholders:
(2098-12-31 …)is an empty slot and is dropped, not listed. - Status words (End, ENDED, LIVE, Next, NEXT, UPCOMING, GAME REPLAYS) are read into the event (over, live, coming up, replay) and stripped from the title.
- Fields the formats carry, such as DAZN's league ("NFL Game Pass") and Matchroom's sport ("snooker"), are kept on the event for sorting. So is a leading sport label ("Baseball:", "hockey:", "Soccer (W):", "fc:").
- The tests are these real titles, one per format, in
EventTests.
Settled while building #
Built 2026-09-27. Of the 5,004 event slots in English folders on Trex and Strong, 4,988 now read (372 before, some as junk). The rest have no time at all ("Boxing 7: Jake Paul vs Anthony Joshua"), so they rightly aren't events.
Eventgainsleagueandstatus(upcoming, live, over, replay). A schedule drops what the provider says is over.- A leading sport label stays in the title ("Baseball: Rangers vs. Twins"). Phase 1 reads it from there.
- Service stamps are Eastern whatever the channel's zone. ESPN+ says so ("2:00PM ET (… 14:01:15)"). Stan's "AU (…)" stamps are Sydney's; "UK:" and "IE" names without a zone are the UK's and Ireland's. Their seconds are noise and are dropped.
- Times with a zone use it: "(GMT)", "EDT (US)", "CEST", "ET". "GMT" is taken at its word, which DAZN's NFL rows confirm (1pm ET = "17:00 (GMT)").
- Bare clock times are still the channel's zone, so a UK folder's "15.00" reads as 3pm Eastern. They're undated, so only the listed time is off. Phase 1 should give each folder its region's zone.
- A date with no year is put in the nearest year, as before. A stale replay ("2024 round 5 … UK Sat 3 Feb") therefore shows as next February.
Phase 1: sport channels with rules #
The sport table #
Bundled in RetroLineup. For each sport:
- Aliases for folder names and league fields: NFL ← "NFL", "NFL PPV", "NFL PACKAGE", "Sunday Ticket", "NFL Game Pass", "RedZone".
- Title labels: "Baseball:" → MLB, college baseball; "hockey:" → hockey; "fc:", "Soccer (M):" → soccer.
- Team lists for the big leagues (NFL, MLB, NBA, WNBA, NHL, MLS, EPL, NRL…), used only when there's no label or league field, and only when both sides of a matchup are teams in the same league. "Raiders vs Broncos" is NFL only if NRL can't claim it too; when both can, the folder decides (RUGBY PPV), else it goes unsorted.
How a slot is sorted #
In order, stopping at the first that answers:
- Your override for this game (see Overrides).
- Its folder, when the folder is single-sport (NFL PPV).
- A real schedule: the slot matches a game on ESPN's scoreboards (same teams, start within about 90 minutes). It takes that game's sport, league, exact start and ESPN game id (see Schedules).
- Its league field (DAZN "NFL Game Pass", Stan "PREM Rugby Round 1").
- Its title label ("Baseball:").
- Team lists, both sides agreeing.
- Unsorted: waits for Jev (phase 2), shown in PPV / Other if you have it.
Schedules #
Agreed 2026-09-27 (Q12).
- ESPN's public scoreboards
(
site.api.espn.com/apis/site/v2/sports/{sport}/{league}/scoreboard?dates=YYYYMMDD) list each day's games with full names, short codes ("KC @ MIA"), UTC start and broadcasters. They cover NFL, college football, MLB, NBA, WNBA, NHL, MLS, EPL, NRL, college volleyball and soccer, and more. The API is undocumented, so treat it as able to change without warning. - Each sport in the table names its scoreboards. Only the Manager fetches them, for the sports you follow, every few hours. The matches sync to other devices, so the Apple TV never calls ESPN.
- The game id merges slots. NFL PPV's, Peacock's and DAZN's Rams–Broncos all match the same game, so Q9's matchup rule only covers what isn't on a schedule.
- Not on any schedule suggests a show or replay ("Stanley Cup Championship" in September), which feeds the live-or-not judgment.
- Matches are saved as labelled examples too. The first one caught a mistake in the seed: "Florida Atlantic vs. UTSA Sep 27 2:00PM ET" is women's volleyball, not football.
- Backup for what ESPN covers thinly (MiLB, UFL): epgshare01's
US_SPORTS1, a guide with a channel per team ("Texas Rangers at Minnesota Twins", 3:10 PM ET).
(Spanish), (Español) and similar in an English folder mark a non-English
feed. It's kept as a feed of the game but never chosen first.
Which slots count at all #
The Events pane has two settings, and everything outside them is ignored: not sorted, not suggested, not sent to Jev, not in PPV / Other.
- Regions: US, UK, CA, IE and AU by default. Only event folders from these are read.
- Sports you follow: a checklist.
Channels #
- A sport channel is an event channel with a sport. It gathers the slots of that sport from any number of folders on each login. It still has a team filter ("NFL · Chiefs"), a time zone, a stored number and so on.
- You add them. The Events pane lists each sport it found, with its totals ("NFL: 3 folders on 2 logins, 14 games this week"), and an Add button. Nothing reaches the dial by itself.
- Existing event channels become sport channels. They keep their number, id and categories, and gain sorting by title.
- PPV / Other is an optional channel for the slots that are followed but unsorted.
One game, several feeds #
- Slots merge into one game when they have the same matchup ("at", "@", "vs" and "x" alike) and start within two hours of each other. Real slots run up to 1h56m apart, and prelims and a main card are three hours apart.
- Feed order: the league's own folder first (NFL PPV), 4K/HD before SD, then service folders (Peacock, ESPN+), then your login order, skipping full logins, as channel feeds already do.
- Home and away broadcasts ("(Rangers Broadcast)") are separate, labelled feeds of the one game, switched in the Select menu.
- Pairing across logins stays
Twins.event's job, widened to these formats.
Folders #
- The pane suggests folders whose sport or games match. You tick them. A folder you untick stays off, as a login taken off a channel does now.
- Service folders (ESPN+, Peacock) are never ticked for a sport as a whole. Each slot in them is sorted as above. Ticking one means "look in here".
- The IPTV pane's event bar gains Add to NFL ▾ beside Add Event Channel.
Overrides #
In the Events pane, after the fact:
- A folder's sport: "trex's USA | GAME PASS is NFL", or "mixed, sort each game".
- A single game: move it to another sport, or hide it ("not a live game").
- Aliases: add a name to a sport, for every login and later folders.
Overrides sync through Antenna Tower and are saved as labelled examples (see Phase 2). The team lists stay in code.
On the Apple TV #
The Apple TV runs the same rules with your synced overrides and aliases, so games are sorted without the Mac. What only Jev could place sits in PPV / Other until Antenna Tower sorts it, then moves.
Sorting is kept off the remote. Sorting the NFL channel's 8 folders (1,064 slots, 69 of them NFL) took 130 ms on a Mac and ran again on every up/down press, so the remote lagged on the Apple TV. Now (2026-09-27):
- Antenna Tower saves each channel's sorted games after every refresh
(
EventGames, synced; the NFL's is 19 KB against 147 KB of slots). A player plays those while they're under 90 minutes old. Otherwise it fetches and sorts the folders itself.Since 2026-10-30 the screens never sort (see below).- Only Antenna Tower writes schedules and games; the players read them.
The screens only play what Antenna Tower sorted (2026-10-30). None of the sport rules, Jev or the folders' fetching is on a TV or phone any more: the TV app should be a player of a list, for App Review.
- Antenna Tower (
tower/internal/jobs/, originally the control room in history/linux-server.md) publishes each channel'sEventGames: its games, andshows, when each always-on stream's guide shows the sport. Channels with only always-on streams get one too. - A screen reads it (
ChannelGames.published) and decides only by the clock what's on. However old the sort, it's played. Past 90 minutes the channel's "coming up" card says "Listings as of 3 h ago", and with none yet it's "waiting for the station's sports guide". - A sort made for a channel as it was is ignored, so Antenna Tower sorts again as soon as the lineup changes.
- None of it is in a screen's app. The rules live in
RetroSports(Packages/Sources/RetroSports/:Sports,SportJudge, ESPN'sSchedules, the event parser and feed, the games' merging, the showings' filters and XMLTV) andStationJobs(Packages/Sources/StationJobs/), and run on Go Antenna Tower (tower/internal/sports/,tower/internal/jobs/). The TV and phone apps link neitherRetroSportsnorStationJobs; they keep only the data (Game,Event,Showing,EventGames). Old channels' sports are guessed in the tower's refresh.
Settled while building phase 1 #
- The steps' order changed from the list above, so the seed examples come out right. A sport named in the title, league field or label ("UFC", "WSL", "Baseball:") comes first. Next, both teams from a sport of another kind than the folder's, which outweighs the folder ("Jets vs. Lions" in SOCCER PPV) even when you named the folder. Then the folder's or slot's own sport. Then both teams, with the folder's or slot's kind ("Rugby 11") breaking a tie. A team's name has to end its side of the matchup, and youth games ("U18") are never a league's.
- A folder's bare times are its region's: a UK folder's "15.00" is 3pm in the UK. A zone you give the channel still wins.
- Channels from before sports take their folder's sport only when every slot it lists is that sport. A UFC folder carrying Cage Warriors and boxing keeps them all. Decided once per channel.
- Several folders per login: taking one off keeps the rest. Taking off a login's last folder keeps the login off, as before.
SportSettings(synced) holds the regions, followed sports, your aliases, and your say on folders and games. It has no editor yet; that's the Events pane.- Schedules cover yesterday to two days ahead, one request per day: ESPN
refuses date ranges. The Manager refreshes them at most every three hours, for the
sports you follow, into
SportSchedule(synced). A side matches a team by location ("Florida Atlantic", not "Florida"), nickname at its end ("…Chiefs"), abbreviation or short name. A slot with only a time matches the game at that time of day on any scheduled day, which puts Monday night's "8:15pm Eagles at Bears" on Monday. A match outweighs every rule except your say. On Sep 27 all 15 NFL games matched at their real times, and 15 MLB games did, merging 34 entries into 29.
Phase 2: Jev #
TypeSafe's Jev returns typed judgments with
probabilities. Antenna Tower calls it using its configured typesafeAPIKey
(Settings › Server in the Manager), and the answers sync like EventSchedules,
so no other device needs the API.
What it's asked #
Each new folder or slot is asked about once, in batches of many questions per request, and the answer is cached.
| Job | Question |
|---|---|
| Folder → sport | Choice: your followed sports, mixed, not sports |
| Slot → sport | Choice: your followed sports, other |
| Same game? | Noul: two titles, times and folders, where the matchup rule is unsure |
| Live or not? | Noul: live game vs show, replay or highlights ("Stanley Cup Championship" in September, "B1G Saturday") |
A second opinion on the rules #
Jev answers for every new folder and slot, not only the ones the rules can't place, and the Manager compares:
- Agree, confident: applied.
- Disagree: goes to review in the Events pane ("Rules: NFL · Jev: rugby league 0.91"). Neither side wins. You pick, and it's saved as an override.
- Rules can't place it: Jev's answer applies when confident, otherwise it's a suggestion to confirm.
The Manager shows each rule's disagreement rate. A rule Jev keeps disputing is one to fix.
Labelled examples #
Every decision you make in review, and every override, is saved as a labelled
example (title, folder, sport, live or not). The seed is
sport-examples.json. just check-sports runs the rules and
Jev over all of them and prints where either is wrong. Run it before changing the
sport table. The ones the rules must get right are also tests in RetroLineup.
Settled while building phase 2 #
- Jev argues with the rules at 0.75, and places a slot alone only at 0.9. On the seed examples it got 66 of 76 right, and it fell into the traps the rules were built for ("Jets vs. Lions" as soccer, NRL's "Dolphins vs Titans" as the NFL, youth games as the NHL and MLB) while sure of itself at 0.77–0.89. A disagreement costs you a click in review; a wrong placement nobody sees. So arguing is cheap and placing is strict, and a title naming an age group ("U18") is never placed in a league. After that, the four disagreements left on the seed all had the rules right.
- Two questions per slot, eight slots per request: which of the sports you follow it is ("other" for none), and whether it's live, a show or a replay. The kind is shown in review but doesn't hide anything: Jev called most past-season replays live.
- Only slots with no say from you and no ESPN match are asked about, each once, at most 480 a run. The Sports pane asks after each scan, and the menu bar's refresh asks about the channels' own folders, so the TV's leftovers stay placed.
- Jev's placements sync (
SportJudged); its answers and your labelled examples stay on the Mac (the Manager's caches:sport-judgments.json,sport-labels.json). - ESPN scoreboards for college volleyball and soccer were added, so "Florida Atlantic vs. UTSA" is settled by the schedule before Jev is asked.
just check-sportsruns the rules (and Jev, withjev="--jev") over the seed and your labels, by kind of rule. On the seed: 70 right, 0 wrong, 8 left alone.
Phase 3: always-on channels #
- A sport channel can also hold ordinary IPTV channels: UK MOTOGP (with AMBIENT, HELI, OB1 and OB2 as labelled feeds of one "MotoGP" entry), F1's feeds, and so on.
- They're live when their guide says a race or session is on. Without a guide they're always listed, after any live games.
- Guides for them: epgshare01's
UK1has Sky Sports F1 ("Azerbaijan F1 Grand Prix") and TNT Sports 1–10 (UK MotoGP), andRALLY_TV1covers rally. epg.lat (listed at ge.m3uiptv.com) has a file per country. Both are hobby-run, so treat them as optional, like epg.pw. A listing isn't proof of live: Sky F1 shows the Baku race three times a day, so tell the live showing from the repeats. - Up/down on the sport channel steps through live games, then these.
Settled while building phase 3 #
- Each always-on channel is its own entry, stepped to with up/down after the live games. Its copies on your logins ("UK| SKY SPORTS F1 HD", "UK: SKY SPORTS F1 FHD") are its feeds, best quality first. Camera feeds (OB1, HELI) are entries of their own, not feeds of one.
- Its guide only counts when the live showing is the channel's sport, by the same rules: TNT Sports carries the Laver Cup and MotoGP, and only the MotoGP puts it on a MotoGP channel. Sky F1's "Live British GT" isn't F1.
- Live is a "Live" title or a title's first showing, minus highlights, magazines, "best of" and the like, and a title once shown live is a repeat after, "Live" or not. Sky F1 showed the Baku race live on Saturday at 10:55, then six more times by Tuesday; Sunday's three showings are all repeats.
- Guides come from epgshare01's files (UK1 has Sky Sports F1 and TNT Sports 1–10).
The Manager fetches the files in use every three hours, unzips them itself (UK1
is 2.8 MB, 21 MB unzipped, read in 0.4 s), keeps only the channels in use from
yesterday to two days ahead, and shares them (
SportGuides). - Without a guide an always-on channel is always on: a sport channel with one never shows the between-games slate.
Later, maybe #
-
A mini guide on Play/Pause (Q13 c): on a sport channel, a half-screen grid of games on now and the next few hours by kickoff, each with its broadcasts; pick any to tune in, even one not started yet, which waits on it. For now the Select menu's Games page lists what's on and coming, and a strip of the games on now shows while stepping with up/down.
-
An all sports channel: every live game you follow, in one place.
-
Jev on the Apple TV, if waiting for the Mac turns out to matter.
-
Ranking feeds by how they've actually played (per-feed flaky spells).
Phin Tech docs
Rabbit Ears Manager in the store →