Skip to content

fix(cookies): verify against an age-restricted video (honest age status)#100

Merged
windoze95 merged 1 commit into
mainfrom
fix/cookies-verify-age-restricted
Jun 29, 2026
Merged

fix(cookies): verify against an age-restricted video (honest age status)#100
windoze95 merged 1 commit into
mainfrom
fix/cookies-verify-age-restricted

Conversation

@windoze95

Copy link
Copy Markdown
Owner

The save-time check probed a normal video, so it could say "connected" while age-restricted playback still failed — exactly the false-positive seen on the live server (#772 plays, #771 age-gates).

verify_cookies now probes a stable age-restricted video (HtVdAasjOgU) first:

  • resolves → fully working;
  • age gate → "cookies load but don't unlock age-restricted videos — the account may not be age-verified, or the cookies are stale; re-export from a signed-in browser";
  • malformed/bot error → surfaced verbatim;
  • age probe failing for an unrelated reason (e.g. removed) → falls back to a normal video so a broken session is still caught.

Recorded via set_cookies_error so the panel shows it immediately on Save — you can iterate exports until it says ✓ without playing a video each time.

321 passed, ruff + mypy clean.

🤖 Generated with Claude Code

The save-time check probed a normal video, so it could report "connected" while
age-restricted playback still failed — the exact false-positive the user hit
(#772 plays, #771 age-gates). Now verify_cookies probes a stable age-restricted
video (HtVdAasjOgU) first:
- resolves -> fully working;
- age gate -> "cookies load but don't unlock age-restricted videos (account not
  age-verified, or cookies stale) — re-export from a signed-in browser";
- malformed/bot error -> surfaced verbatim;
- age probe unavailable for an unrelated reason -> fall back to a normal video so
  a broken session is still caught.
The result is recorded (set_cookies_error) so the panel shows it immediately on
Save — no need to play a video to find out.

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 ed695da into main Jun 29, 2026
5 checks passed
@windoze95 windoze95 deleted the fix/cookies-verify-age-restricted branch June 29, 2026 17:54
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