Find out why some hosts find no stream for a game #66
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cmoriarty/sports-breaker#66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happens
To check a link, the app opens the host's player page in headless Chromium and watches the page's network requests for a stream playlist (
.m3u8). If none appears within the wait, the link is refused as "no stream found" (resolver/sportsurge.py,extract_stream).On Chelsea vs. Man Utd (2026-10-31), givemestreams.cfd, buff-streams.buzz and resports.cfd answered "no stream found" on every check from 12:04 to full time. Yet these hosts play other games:
Across all checks from 2026-10-26 to 2026-10-31, 137 of 595 links tried (23%) yielded a stream.
The question
Either the host doesn't carry the game (the hubs list placeholders, or links for another game), or our reader misses a stream that's there. A miss could be a player that only requests the playlist after a click, a further frame, a stream URL our match doesn't recognise, or a load longer than our wait.
The work
docs/stream-sources.md, dated.If the hosts simply don't carry those games, nothing changes in the reader; #64's demotion stops them taking every read's first tries.
The live look, 2026-10-31 (15 player pages on NC State vs. California, Man City vs. Brighton and Bournemouth vs. Leeds). Mostly reader misses, not hosts without the game.
1. The main miss: the embedcenter.st
hls_coplayer/center/and others all embed the same player network:embedcenter.st/embed/chN.php.hls.php: a normal.m3u8, which we read.hls_co.php: the playlist is JSON (edgestream3.pro/sh/access/<token>/cdn/hls/<id>.json, keysschema_version,segments,playlist). Its segments are 4–5 MBimage/pngfiles onp16-common-sign.tiktokcdn.com.TIKTIKPX, a 4-byte length and gzip, which unpacks to clean MPEG-TS. One segment decoded to H.264 1280×720 at 29.97 fps with AAC, 10 s..m3u8is ever requested. The.m3u8URL written in the page script answers 403.hls_comode knocks out every front end at once. On Chelsea, givemestreams, buff-streams, resports, s2watch and iframely all failed while topsurge, iohit, shd247 and powerstream/tv/verified. NC State showed the same pattern today.Reading it means:
https://embedcenter.st/;&grant=1;2. "Sandbox detected" players
The
embedsports.me,sportspatrika.comandtaifood-blog.asiaplayers refuse to play. They probably see"HeadlessChrome"innavigator.userAgentData, which contradicts our User-Agent. This is not tested; it's the operator's call whether to change it.3. Smaller reader issues, fixed in this batch
;, so bot-challenged pages count as "no stream".goto(wait_until="load"). A player that never finishes loading becomes "source page unreachable".&indata-hrefis not unescaped.Every stream that did appear did so within 4 s. Nothing was missed for want of a click or a longer wait.
Closing: the look is done and its fixes are deployed (PR #67, merged as
1938e97, live 2026-10-31 17:44 UTC).Shipped (
reader-misses):docs/stream-sources.mdunder 2026-10-31.Carried forward:
hls_coplayer is #68, the next batch ("More working links", milestone 33). Its format is pinned down: Pillow's RGB bytes,TIKTIKPX, a big-endian length, then gzip, which gives MPEG-TS. That takes 0.04 s a segment.