strawcore/tests/fixtures/feed_lookup/past_stream.json
Cobb a969254b09 test: drop the tracking fields left in a feed fixture; guard every fixture
tests/fixtures/feed_lookup/past_stream.json still carried trackingParams
and clickTrackingParams (opaque YouTube tokens, 27 and 34 bytes once
base64-decoded; neither holds the capturing address as text or as four
bytes, checked with a planted control). They are removed; nothing reads
them. The three feed fixtures now each come out unchanged from the
README's scrub filter.

the_fixtures_carry_no_request_bound_data listed the twelve Live tab
fixtures by name and never looked at the three feed fixtures, and its
markers missed clickTrackingParams (the match was case-sensitive),
URL-encoded "ip%3D" and a bare IPv4 address. It now reads every JSON
file in both fixture directories from disk, checks that the walk found
five named files (so a moved directory cannot pass empty), and fails on
any "...TrackingParams" field, "ip%3D" or "ip%3d", and a dotted IPv4
address with every group at most 255. "20.772.51.34", a duration the
Indonesian fixture carries, is not taken for an address (772 > 255);
first_ipv4 has its own test. Run on the old past_stream.json, the guard
fails on trackingParams.

Correction to b1a0cf2: its message says tracking fields were removed
from the captures before saving. That was true of the Live tab fixtures
and not of past_stream.json, which kept both fields until this commit.
2026-10-23 11:27:35 -07:00

1 line
2.2 KiB
JSON

{"playerResponse":{"playabilityStatus":{"contextParams":"Q0FFU0FnZ0M=","miniplayer":{"miniplayerRenderer":{"enableStashedPlayback":false,"playbackMode":"PLAYBACK_MODE_ALLOW"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"ypcGetOfflineUpsellEndpoint":{"params":"ChPqqN25AQ0KC1VsZWlSZFdGRzdvIgtVbGVpUmRXRkc3byoVCAkYAVIPCgtVbGVpUmRXRkc3byAB"}}}},"pictureInPicture":{"pictureInPictureRenderer":{"pictureInPicturePlayability":"PICTURE_IN_PICTURE_PLAYABILITY_ALL","pictureInPictureStyleConfig":{"enableNavigationControls":true,"enableScrubbing":true},"playableInPip":true}},"playableInEmbed":true,"status":"OK"},"videoDetails":{"allowRatings":true,"author":"NASA","channelId":"UCLA_DiR1FfKNvjuUpBHmylQ","isCrawlable":true,"isLiveContent":true,"isLowLatencyLiveStream":false,"isOwnerViewing":false,"isPrivate":false,"isTvfilmVideo":false,"isUnpluggedCorpus":false,"latencyClass":"MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL","lengthSeconds":"1689","shortDescription":"We're giving a preview of two upcoming spacewalks on Oct. 29 and Nov. 5 to finish installing solar arrays that will provide more power to the International Space Station. \n\nNASA astronaut Anil Menon and CSA (Canadian Space Agency) astronaut Joshua Kutryk will participate in both spacewalks. The spacewalks will be the 285th and 286th conducted in support of space station assembly, maintenance, and upgrades.\n\nNASA participants in the news conference include:\n- Gaurang Patel, operations integration manager, Low Earth Orbit Program\n- Garrett Hehn, spacewalk flight director, Flight Operations Directorate\n\nLearn more about the spacewalks: https://go.nasa.gov/4yRBm97\nLearn more about International Space Station operations and research: https://www.nasa.gov/station","thumbnail":{"thumbnails":[{"height":90,"url":"https://i.ytimg.com/vi/UleiRdWFG7o/default.jpg","width":120},{"height":180,"url":"https://i.ytimg.com/vi/UleiRdWFG7o/mqdefault.jpg","width":320},{"height":360,"url":"https://i.ytimg.com/vi/UleiRdWFG7o/hqdefault.jpg","width":480},{"height":480,"url":"https://i.ytimg.com/vi/UleiRdWFG7o/sddefault.jpg","width":640}]},"title":"U.S. Spacewalk Preview News Conference (Oct. 20, 2026)","videoId":"UleiRdWFG7o","viewCount":"75736"}}}