fix(ingest): raise ref cap to 50 and clarify invalid bvid error

This commit is contained in:
kairee committed 2026-11-01 15:05:17 +08:00
1 parent b5bf7d9b8f
commit b0c53e8a2f
7 files changed
+107 -9

No files matched your search

+2 -1
View File
@@ -25,7 +25,8 @@ _AID_RE = re.compile(r"(?<![0-9A-Za-z])av(\d{1,20})(?![0-9A-Za-z])", re.IGNORECA
_SHORT_RE = re.compile(r"b23\.tv/([0-9A-Za-z]+)")
# 单条消息最多处理的引用数,避免误粘贴一段文本导致突发请求。
DEFAULT_MAX_REFS = 10
# 15 个 BV 号批量测试手动入库是常见用法,上限放宽到 50,超出时回执会提示分批发送。
DEFAULT_MAX_REFS = 50
@dataclass(frozen=True)