doctor(youtube): 'can extract metadata/subtitles' overstates a runtime-only check

Author: het915Created Sep 28, 2026Updated Sep 28, 2026

Summary

The YouTube doctor result reports status: "ok" and “可提取视频信息和字幕” (“can extract video information and subtitles”) after checking the local executable/runtime/configuration only. On this Linux VPS, the same configured backend cannot retrieve a public test video's metadata because YouTube returns a bot/sign-in challenge.

This report concerns Agent Reach's readiness claim, not a request to bypass YouTube restrictions or a claim that yt-dlp fails everywhere. The network restriction is external; the misleading diagnostic is in this repository.

Environment

  • Agent Reach: 1.5.0, current main a19a171fa980a0785849596492e0af4db800c82f
  • Linux VPS/container, Python 3.13.5, Node v26.5.1
  • Installed from the repository with its constraints: yt-dlp 2026.07.04 and yt-dlp-ejs 0.8.0
  • Also reproduced extraction failure with the latest stable PyPI yt-dlp, 2026.08.19, in a separate uvx environment
  • Node explicitly enabled for yt-dlp
  • No browser-cookie extraction, login, paid proxy or transcription provider used
  • Reproduced on 2026-09-28

Reproduction

  1. Install Agent Reach and yt-dlp with Node configured, then run:
bash
agent-reach doctor --json

The YouTube entry reports:

json
{
  "status": "ok",
  "message": "可提取视频信息和字幕",
  "active_backend": "yt-dlp"
}

The same claim is reproducible directly in the installed environment:

python
from agent_reach.channels.youtube import YouTubeChannel
channel = YouTubeChannel()
print(channel.check())
# ('ok', '可提取视频信息和字幕')
  1. Run an actual public-video extraction independently of Agent Reach:
bash
yt-dlp --ignore-config --js-runtimes node --no-cache-dir \
  --no-warnings --skip-download --no-playlist \
  --socket-timeout 10 --retries 0 --dump-single-json \
  'https://www.youtube.com/watch?v=jNQXAC9IVRw'

The extraction exits 1 with:

ERROR: [youtube] jNQXAC9IVRw: Sign in to confirm you’re not a bot.
  1. Changing only to the latest stable downloader does not resolve this environment's restriction:
bash
uvx --python 3.13 --from 'yt-dlp[default]==2026.8.19' yt-dlp \
  --ignore-config --js-runtimes node --no-cache-dir \
  --no-warnings --skip-download --no-playlist \
  --socket-timeout 10 --retries 0 --dump-single-json \
  'https://www.youtube.com/watch?v=jNQXAC9IVRw'

This also exits 1 with the same challenge. This is not a missing-JS-runtime or old-version diagnosis.

Code path and expected behavior

In agent_reach/channels/youtube.py, check() probes yt-dlp --version, local runtime availability and configuration, then unconditionally starts its success message with “可提取视频信息和字幕”. It never tests video access.

The video reference correctly warns that Doctor only checks the executable/runtime and that an active backend does not prove real captions can be retrieved. The CLI/JSON claim should express the same boundary.

Suggested outcome, without adding network or credential side effects:

  • Say “yt-dlp/runtime installed; video access and subtitles not live-verified.”
  • Expose the verification level in machine-readable output, or use an appropriate warning state, instead of an unqualified extraction-success claim.
  • Keep the installed backend discoverable; do not interpret an external bot challenge as an absent executable.
  • Add a regression test preventing an installation-only check from asserting verified video/subtitle retrieval.

I am not requesting a default network probe, automatic browser-cookie access, or automatic paid transcription. Those would conflict with the intentionally read-only Doctor design.

Related context

  • #566 discusses transcript routing and the distinction between installed backends and meaningful content. Its maintainer follow-up recommends separate, platform-specific reports for remaining issues; this report is limited to the YouTube diagnostic claim.
  • #685 describes a similar verification-level concern for the web/Jina channel.
  • All 607 existing tests passed locally; the successful installation checks do not cover this live-access boundary.