fengchang618gmail/dsh-course-subtitles ↗★ 0
dsh-course-subtitles
DSH dual-half plugin: extract course video subtitles (DeepLearning.AI, YouTube, Bilibili, Coursera), rebuild them as whole sentences, translate line-by-line (EN/ZH), generate section headings, and publish one Feishu doc per lesson under a parent node. Also exports a Course Outline (video titles as plain text, week/module blocks preserved) into one Feishu doc. Every credential comes from the environment or the harness credential store — nothing is hardcoded, and the LLM key chain falls back automatically. 用于课程视频的本地化与笔记整理,适合需要将网课内容快速转化为飞书文档的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fengchang618gmail/dsh-course-subtitles第 3 步:配置密钥
在启动 DSH 的终端里设置环境变量,然后正常启动 DSH 即可:
### 第 4 步:在对话里使用
重启后直接对 agent 说,把课程链接和飞书目录放进对话里就行,不用改任何设置文件:
> 帮我跑一下课程字幕 https://learn.deeplearning.ai/courses/generative-ai-for-everyone,写到飞书 https://你的租户.feishu.cn/wiki/xxxxxxxxxxxxxxxxxxxx
agent 会调用这几个工具(通常你不用关心名字):
| 工具 | 作用 |
|---|---|
| `course_subtitles_run` | 抓字幕 → 翻译 → 分章节 → 写飞书,返回 run id |
| `course_outline_run` | 只导出课程大纲(零 token) |
| `course_subtitles_status` | 查看运行进度和产出文档链接 |
| `course_proxy_status` | 网络自检:本机代理能不能出网、yt-dlp 在不在 |
| `course_llm_status` | 列出会依次尝试的 LLM 凭据 |
---