dsh-plugin-bili-summary
DeepSeek Harness Host plugin: bili_summary tool — Bilibili video metadata, subtitle timeline and sharp-based frame cutting
AI Analysis
核心用途是快速提取和总结 B 站视频内容。适合需要对视频进行文本总结、字幕分析或关键帧提取的用户。抽帧功能依赖 sharp。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YZz-S/dsh-bili-summaryREADME
Read the full README ↗Configuration (inline config)
| Field | Default | Description |
|---|---|---|
outputDir | bili-output | Output root: images/_/, cache// (meta.json / subtitle.json / subtitle.srt) |
cookie | empty | SESSDATA=...; bili_jct=.... Use when risk control (-412) or login (-352) triggers; used only in request headers, never written to logs or results |
userAgent | built-in browser UA | Overrides the default UA |
timeoutMs | 15000 | Per-HTTP timeout |
retries | 2 | Retry count for network failures / 5xx / risk control (exponential backoff) |
maxFrames | 12 | Max frames in image mode |
chapterIntervalSec | 180 | Chapter granularity (snaps to the nearest subtitle start when subtitles exist) |
inlineSubtitleLimit | 10000 | Max characters of inlined subtitles returned |
配置(行内 config)
| 字段 | 默认 | 说明 |
|---|---|---|
outputDir | bili-output | 输出根目录:images/_/、cache//(meta.json / subtitle.json / subtitle.srt) |
cookie | 空 | SESSDATA=...; bili_jct=...。风控(-412)/需登录(-352)时启用;仅用于请求头,绝不写入日志或结果 |
userAgent | 内置浏览器 UA | 覆盖默认 UA |
timeoutMs | 15000 | 单次 HTTP 超时 |
retries | 2 | 网络失败 / 5xx / 风控重试次数(指数退避) |
maxFrames | 12 | 带图模式最多切帧数 |
chapterIntervalSec | 180 | 章节划分粒度(有字幕时吸附到最近字幕起点) |
inlineSubtitleLimit | 10000 | 字幕内联返回字符上限 |