TheTVapp's links are never tried: checks, standbys and recoveries use only a game's first source #128

Closed
opened 2026-11-08 20:35:01 -05:00 by cmoriarty · 1 comment
Owner

What happens

Every game gets a Sportsurge link first, and TheTVapp's link is added after it. The background checks, the standby searches, recoveries, the Ready rule and the media servers' channel list all use only a game's first source. So TheTVapp's link is never read. Only a click on the Games page can reach it.

Women's college basketball is worse off. Sportsurge's NCAAB section is men's only, so a women's game's first source always answers "the site's list does not carry this game" (in 0.0 s). The check never moves on to TheTVapp, which does list some women's games (see #127).

Evidence (2026-11-08)

  • Game lists: thetvapp gives 19 rows, and 15 of 37 games carry a thetvapp source. Yet no event in 7 h mentions thetvapp, and /api/sources lists none of its player hosts.
  • South Carolina vs. North Carolina (women's, followed at 19:02 ET) failed its check at 19:04 with Sportsurge's "not listed", although it had a thetvapp link.
  • The event log back to Nov 5 has 11 women's checks. All were instant "not listed" failures, and no thetvapp read happened.
  • A scratch run of the app's own thetvapp adapter on 4 live games resolved all 4 in 1–4 s. Two verified at 1280×720 30 fps, and two failed with "media sequence did not advance".

Cause

prewarm._first_kind (sources[0]) keys every scheduled read. resolution.is_ready, recently_ready and measured_label use sources[0] too, and so does the channel URL in feed.py. This is not a regression: it has worked this way since #87.

Fix (owner's choice: full fallback)

A game's first-source ladder holds the links of every source the game lists, and each link is read through its own source's adapter. Checks, standbys and recoveries then reach TheTVapp when Sportsurge doesn't list the game or its links fail. TheTVapp's stream also counts as a different stream when the app picks a standby. Picking a source on the Games page still means that source alone.

## What happens Every game gets a Sportsurge link first, and TheTVapp's link is added after it. The background checks, the standby searches, recoveries, the Ready rule and the media servers' channel list all use only a game's **first** source. So TheTVapp's link is never read. Only a click on the Games page can reach it. Women's college basketball is worse off. Sportsurge's NCAAB section is men's only, so a women's game's first source always answers "the site's list does not carry this game" (in 0.0 s). The check never moves on to TheTVapp, which does list some women's games (see #127). ## Evidence (2026-11-08) - Game lists: thetvapp gives 19 rows, and 15 of 37 games carry a thetvapp source. Yet no event in 7 h mentions thetvapp, and `/api/sources` lists none of its player hosts. - South Carolina vs. North Carolina (women's, followed at 19:02 ET) failed its check at 19:04 with Sportsurge's "not listed", although it had a thetvapp link. - The event log back to Nov 5 has 11 women's checks. All were instant "not listed" failures, and no thetvapp read happened. - A scratch run of the app's own thetvapp adapter on 4 live games resolved all 4 in 1–4 s. Two verified at 1280×720 30 fps, and two failed with "media sequence did not advance". ## Cause `prewarm._first_kind` (`sources[0]`) keys every scheduled read. `resolution.is_ready`, `recently_ready` and `measured_label` use `sources[0]` too, and so does the channel URL in `feed.py`. This is not a regression: it has worked this way since #87. ## Fix (owner's choice: full fallback) A game's first-source ladder holds the links of **every** source the game lists, and each link is read through its own source's adapter. Checks, standbys and recoveries then reach TheTVapp when Sportsurge doesn't list the game or its links fail. TheTVapp's stream also counts as a different stream when the app picks a standby. Picking a source on the Games page still means that source alone.
Author
Owner

Fixed in PR #129, merged as b095bc3. Deployed 2026-11-09 02:18Z from refs/heads/main (container 34fbb72ee56f, about 100 s down, nobody watching, no log errors); archived in 2120e13.

  • The every-source ladder. A game's links from every source it lists now sit in one ladder (any). Checks, standby searches, renewals, recoveries, the Ready rule and the media servers' channels (?s=any) all use it. So when Sportsurge doesn't list a game, or its links fail, the same walk reaches TheTVapp's link. A source picked on the Games page still means that source alone.
  • The verifier. It now gives a playlist up to three polls, one target duration apart, and samples the segment before when the newest answers 404. Once TheTVapp was tried, half its working streams were failing "did not advance": its CDN lists two 4 s segments about every 9 s behind a 3 s cache. With the change, 4 of 6 live TheTVapp games verified at 1280×720 30 fps; the other two hit the 404 case.
  • Restarts. The readiness snapshot moved to the new key, so this deploy's restart kept its Ready games.

Seen live after the deploy: a requested check of tonight's USC vs. Utah State (women's; Sportsurge does not list it) found its stream on thetvapp.plus, link 1 of 2, verified at 1280×720 30 fps, and the game went Ready (02:24Z). The feed's 20 channels are on ?s=any, and the Game lists row reads sportsurge, thetvapp and watchsports. Not seen live yet: a recovery or a standby crossing sources, and a watchsports link verifying in production.

Fixed in PR #129, merged as b095bc3. Deployed 2026-11-09 02:18Z from refs/heads/main (container 34fbb72ee56f, about 100 s down, nobody watching, no log errors); archived in 2120e13. - **The every-source ladder.** A game's links from every source it lists now sit in one ladder (`any`). Checks, standby searches, renewals, recoveries, the Ready rule and the media servers' channels (`?s=any`) all use it. So when Sportsurge doesn't list a game, or its links fail, the same walk reaches TheTVapp's link. A source picked on the Games page still means that source alone. - **The verifier.** It now gives a playlist up to three polls, one target duration apart, and samples the segment before when the newest answers 404. Once TheTVapp was tried, half its working streams were failing "did not advance": its CDN lists two 4 s segments about every 9 s behind a 3 s cache. With the change, 4 of 6 live TheTVapp games verified at 1280×720 30 fps; the other two hit the 404 case. - **Restarts.** The readiness snapshot moved to the new key, so this deploy's restart kept its Ready games. Seen live after the deploy: a requested check of tonight's USC vs. Utah State (women's; Sportsurge does not list it) found its stream on thetvapp.plus, link 1 of 2, verified at 1280×720 30 fps, and the game went Ready (02:24Z). The feed's 20 channels are on ?s=any, and the Game lists row reads sportsurge, thetvapp and watchsports. Not seen live yet: a recovery or a standby crossing sources, and a watchsports link verifying in production.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#128
No description provided.