Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Python agent-infrastructureai-agentai-searchautomationbilibiliclaude-codeclicursorfree-apillm-toolsmcppythonreddit-scrapertwitter-scraperweb-scraperxiaohongshuyoutube-transcript
fix(youtube): install required default dependencies
Pnantbb55cc6b27f4
diff --git a/agent_reach/channels/youtube.py b/agent_reach/channels/youtube.pyindex b2601112..90ec5146 100644--- a/agent_reach/channels/youtube.py+++ b/agent_reach/channels/youtube.py@@ -11,6 +11,7 @@ from agent_reach.utils.text import read_utf8_textfrom .base import Channel_JS_RUNTIMES_SUPPORTED_FROM = (2025, 11, 12)+_YTDLP_UPGRADE_COMMAND = 'python -m pip install -U "yt-dlp[default]"'def _parse_ytdlp_version(version: str):@@ -74,12 +75,12 @@ class YouTubeChannel(Channel):return "warn", ("无法确认 yt-dlp 版本是否支持 JS runtime 配置。""请先升级并重新运行 doctor:\n"- " python -m pip install -U yt-dlp"+ f" {_YTDLP_UPGRADE_COMMAND}")if version < _JS_RUNTIMES_SUPPORTED_FROM:return "warn", ("yt-dlp 版本过旧,不支持 JS runtime 配置。请先升级并重新运行 doctor:\n"- " python -m pip install -U yt-dlp"+ f" {_YTDLP_UPGRADE_COMMAND}")return "warn", (f"yt-dlp 已安装但未配置 JS runtime。运行:\n {render_ytdlp_fix_command()}"diff --git a/tests/test_youtube_channel.py b/tests/test_youtube_channel.pyindex 923ae5eb..940ac8b7 100644--- a/tests/test_youtube_channel.py+++ b/tests/test_youtube_channel.py@@ -138,6 +138,7 @@ def test_check_does_not_prescribe_unverified_flag_when_version_is_unknown():assert status == "warn"assert "无法确认" in messageassert "升级" in message+ assert "yt-dlp[default]" in messageassert "--js-runtimes" not in messageassert ch.active_backend == "yt-dlp"