More working links: a poll during a cold tune waits, and the disguised streams are read #70

Merged
cmoriarty merged 2 commits from more-working-links into develop 2026-10-31 14:12:09 -04:00
Owner

The More working links batch (milestone 33).

#69: a poll during a cold tune waits for it (cold-tune-race)

A cold tune adopts its stream before its first pull lands. A second poll in that window rendered an empty playlist, and ffmpeg gave up on it. That poll now waits on the same cold tune. The test fails without the fix ([[0], []]).

#68: read the disguised streams (disguised-streams)

The embedcenter.st player behind givemestreams, buff-streams, resports, s2watch, iframely and others serves, in its hls_co mode, a JSON playlist of PNG images on TikTok's CDN with the MPEG-TS packed inside.

  • packed.py:
    • the JSON read as HLS;
    • a packed PNG unpacked (Pillow, 0.04 s a segment);
    • a packed PNG told from a decoy by its first bytes.
  • upstream.py translates in fetch_manifest and fetch_bytes, so the channel, the check and the proxy see an ordinary stream. The re-check accepts a packed PNG's first bytes.
  • The reader takes such a JSON response as the stream, with the Referer its player sent.
  • The pass-through proxy relays it for the browser player.

Read live with the app's own code on buff-streams.buzz c16:

  • the reader found the playlist in 3.0 s;
  • the check verified it at 1280×720, 29.97 fps, and the re-check passed;
  • the segments unpacked to 10 s of H.264 + AAC each.

The first live read found the Referer problem (a 403), now fixed.

Checks

  • make test: 838 passed.
  • openspec validate --strict: both changes pass.

🤖 Generated with Claude Code

The More working links batch (milestone 33). ## #69: a poll during a cold tune waits for it (`cold-tune-race`) A cold tune adopts its stream before its first pull lands. A second poll in that window rendered an empty playlist, and ffmpeg gave up on it. That poll now waits on the same cold tune. The test fails without the fix (`[[0], []]`). ## #68: read the disguised streams (`disguised-streams`) The embedcenter.st player behind givemestreams, buff-streams, resports, s2watch, iframely and others serves, in its `hls_co` mode, a JSON playlist of PNG images on TikTok's CDN with the MPEG-TS packed inside. - **`packed.py`:** - the JSON read as HLS; - a packed PNG unpacked (Pillow, 0.04 s a segment); - a packed PNG told from a decoy by its first bytes. - **`upstream.py` translates in `fetch_manifest` and `fetch_bytes`,** so the channel, the check and the proxy see an ordinary stream. The re-check accepts a packed PNG's first bytes. - **The reader** takes such a JSON response as the stream, with the Referer its player sent. - **The pass-through proxy** relays it for the browser player. **Read live** with the app's own code on buff-streams.buzz c16: - the reader found the playlist in 3.0 s; - the check verified it at 1280×720, 29.97 fps, and the re-check passed; - the segments unpacked to 10 s of H.264 + AAC each. The first live read found the Referer problem (a 403), now fixed. ## Checks - `make test`: 838 passed. - `openspec validate --strict`: both changes pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#69 cold-tune-race. A cold tune adopts its stream before its first pull
lands; a second poll in that window found the entry set, skipped the
cold tune and rendered an empty playlist, which ffmpeg gives up on
(seen on a test tune of Spurs vs. C Palace, 2026-10-31). Such a poll
now waits on the same cold tune.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read the disguised streams: a JSON playlist of PNG-packed MPEG-TS
All checks were successful
ci / Unit tests, type check, bundle (pull_request) Successful in 45s
ci / One container, e2e click-to-play inside the image (pull_request) Successful in 1m23s
f9a35d3e76
#68 disguised-streams. The embedcenter.st player behind givemestreams,
buff-streams, resports, s2watch, iframely and others serves, in its
hls_co mode, a JSON playlist whose segments are PNG images on TikTok's
image CDN with the TS packed inside (TIKTIKPX, a length, gzip). Every
front end of such a channel answered "no stream found".

- packed.py: the JSON as an HLS media playlist; a packed PNG unpacked to
  its TS (Pillow, 0.04 s a segment); a packed PNG told from a decoy by
  its first bytes.
- upstream.py translates in fetch_manifest and fetch_bytes (off the
  event loop), so the channel, the check and the proxy see an ordinary
  stream; a ranged read is left alone and the re-check accepts a packed
  PNG's first bytes.
- The reader takes such a JSON response as the stream, with the Referer
  its player sent (full headers, else the fetching frame's origin):
  Playwright's plain headers leave it out, and the CDN answers 403 to
  the page's URL.
- The pass-through proxy relays the JSON as rewritten HLS and each
  packed PNG as its TS, for the browser player.

Read live on buff-streams.buzz c16: found in 3.0 s, verified at
1280×720 29.97 fps, re-checked, segments unpacked to 10 s of H.264+AAC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty merged commit 074a7ddd96 into develop 2026-10-31 14:12:09 -04:00
Sign in to join this conversation.
No reviewers
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!70
No description provided.