Skip to content

fix: report YouTube bot check separately from sign-in errors - #135

Open
vanloctech wants to merge 2 commits into
mainfrom
fix/issue-129-youtube-bot-check
Open

vanloctech wants to merge 2 commits into
mainfrom
fix/issue-129-youtube-bot-check

Conversation

@vanloctech

Copy link
Copy Markdown
Owner

Summary

Closes #129.

When YouTube blocks a request with Sign in to confirm you're not a bot, the error contains "sign in", so Youwee reported it as YT_SIGNIN_REQUIRED ("This video requires sign-in"). The real cause is a network or session block, not a video that needs sign-in, so that message sent users the wrong way.

  • New error code YT_BOT_CHECK (non-retryable). It is detected before the generic sign-in check in all four classifiers: parse_ytdlp_error, build_download_error_message, infer_error_code (Rust), and inferBackendErrorCode (TS).
  • New localized message in all 13 locale directories. It tells the user to enable cookies from a signed-in browser (or a cookie file) in Settings → Network & Auth, or to switch network/proxy.
  • Rust unit tests cover the reported error line in both the download path and parse_ytdlp_error.
  • Changelog entries are added in EN, VI and ZH-CN.

This PR only reports the error correctly. It doesn't get around YouTube's bot check.

Test plan

  • Biome, tsc, bun tests and cargo check pass (pre-commit hook)
  • Rust tests pass (224), including the new bot-check tests
  • Manual: hit the bot check on a real network without cookies and confirm the new message shows instead of "requires sign-in"

🤖 Generated with Claude Code

yt-dlp's "Sign in to confirm you're not a bot" error was classified as
YT_SIGNIN_REQUIRED. Add a dedicated YT_BOT_CHECK code, detected before
the generic sign-in check in both Rust and TypeScript, with a localized
hint to enable browser cookies or switch network/proxy.

Closes #129

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T09:44:14.786786Z df8ac79 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…-bot-check

# Conflicts:
#	CHANGELOG.md
#	docs/CHANGELOG.vi.md
#	docs/CHANGELOG.zh-CN.md
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