A hub-only game seen live stays listed through its breaks (#181) #183
Loading…
Reference in a new issue
No description provided.
Delete branch "hub-live-through-break"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #181.
The fault
On 2026-11-16 three UEFA Nations League games listed only by sportsurge left the site's list as halftime began. The hub read went from 51 rows to 41, and the games never came back.
The site's page was not read, so whether the site removed the rows or relabelled them is not known. This fix holds either way.
The fix
The list remembers the hub-only games it has listed as live. Such a game stays listed as live, keeping its id, start and sources, in two cases:
hub.says_overis true only for a full-time label, a score, or a word for a game called off.The hold ends at the game's start plus its sport's usual length, unless a feed reports it final or its row says it is over. The usual length comes from the guide's table, which moved from
feed.pytogames.ESTIMATED_LENGTHS: soccer 2 h 15 min, three hours for a sport the app does not know. While a game is remembered, the merged list is also rebuilt each minute, so a kept game leaves on time.HubGame.label).finished.Checks
test_hub.py, each failing onmain's code:openspec validate live-game-list --type spec --strict: the same three warnings as onmain(requirements longer than 500 characters there already), none added.make test: 1,491 passed, 1 skipped.🤖 Generated with Claude Code