全中文输出 + 积极正向的状态提示

所有 doctor 输出和渠道描述改为中文。
状态提示从'不支持/需要配置'的语气改为'配置一下就能用'。

Before:  Reddit posts — Need config: reddit_proxy
After:   Reddit 帖子和评论 — 配个代理就能用

Before:  XiaoHongShu — Need config: xhs_cookie
After:   小红书笔记 — 导入浏览器 Cookie 就能用
This commit is contained in:
Panniantong
2026-02-24 09:14:41 +01:00
parent 904f8dfb49
commit 2098dacd37
13 changed files with 54 additions and 44 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ from .base import Channel, ReadResult
class BilibiliChannel(Channel):
name = "bilibili"
description = "Bilibili video info and subtitles"
description = "B站视频信息和字幕"
backends = ["Bilibili API"]
tier = 0
@@ -23,7 +23,7 @@ class BilibiliChannel(Channel):
def check(self, config=None):
proxy = config.get("bilibili_proxy") if config else None
if proxy:
return "ok", "Via proxy"
return "ok", "已配置代理,完整可用"
# Detect if we're on a server (same logic as cli._detect_environment)
import os
indicators = [
@@ -34,8 +34,8 @@ class BilibiliChannel(Channel):
]
is_server = any(indicators)
if is_server:
return "warn", "May be blocked on servers. Fix: agent-eyes configure proxy URL"
return "ok", "Local access"
return "warn", "服务器 IP 可能被封,配置代理即可解决:agent-eyes configure proxy URL"
return "ok", "本地直连可用"
async def read(self, url: str, config=None) -> ReadResult:
# Proxy support (Bilibili blocks server IPs)