Skip to content

fix(cookies): cookie status reflects auth, not playback (stop false "invalid")#102

Merged
windoze95 merged 1 commit into
mainfrom
fix/cookie-status-auth-not-playback
Jun 29, 2026
Merged

fix(cookies): cookie status reflects auth, not playback (stop false "invalid")#102
windoze95 merged 1 commit into
mainfrom
fix/cookie-status-auth-not-playback

Conversation

@windoze95

Copy link
Copy Markdown
Owner

After #101, two paths wrongly marked valid cookies invalid:

  1. verify_cookies probed the progressive resolve (android client) — which age-gates age-restricted videos even with good cookies → save showed invalid.
  2. The instant-stream resolve called note_extraction_error on its stderr; with the android client an age video age-gates ("confirm your age"), flagging cookies stale on every play.

Both conflate "is a progressive stream available" (a playback/SABR concern) with "do the cookies authenticate" (the age gate). Separated:

  • _probe_error → back to --simulate (no forced client/format): checks the cookies pass the age gate, their actual job.
  • the instant-stream resolve no longer touches cookie status; validity is owned by the save-time verify.

Valid cookies now stay green. (Age-restricted playback still fails on YouTube's SABR-only authenticated formats — separate issue, needs po_token or the download path; tracked next.)

321 passed, ruff + mypy clean.

🤖 Generated with Claude Code

…invalid")

Two paths were wrongly marking valid cookies invalid once the android resolve
went in (#101):
- verify_cookies probed the *progressive resolve* (android client), which
  age-gates age-restricted videos even with good cookies -> save showed invalid.
- the instant-stream resolve called note_extraction_error on its stderr; with
  android the age video age-gates ("confirm your age") and that flagged the
  cookies stale on every play attempt.

Both conflate "is a progressive stream available" (a playback/SABR concern) with
"do the cookies authenticate" (the age gate). Separate them:
- _probe_error goes back to `--simulate` (no forced client/format): it checks the
  cookies pass the age gate, which is their actual job.
- the instant-stream resolve no longer touches cookie status; validity is owned
  by the save-time verify.

So valid cookies stay green even though age-restricted *playback* still fails on
YouTube's SABR-only authenticated formats (separate issue; needs po_token or the
download path). 321 passed; ruff + mypy clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95 windoze95 merged commit 5a4ea96 into main Jun 29, 2026
5 checks passed
@windoze95 windoze95 deleted the fix/cookie-status-auth-not-playback branch June 29, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant