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. 适合需要将多平台课程视频字幕重构、翻译并整理输出为结构化飞书文档的学习任务。

パッケージ
dsh-course-subtitles
互換性
未検証
Harness ピア範囲
^0.1.5-rc.2
バージョン
0.5.0
ライセンス
MIT
最終更新
2026/09/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fengchang618gmail/dsh-course-subtitles

ドキュメント

README 全文を読む ↗

第 2 步:配置密钥(二选一,都不写进代码)

方式一:环境变量(最简单)


## 配置项

配置文件放在工作目录下叫 `course-subtitles.config.json`(可参考 `config.example.json`),可用 `--config 
` 指定。

| 字段 | 默认值 | 说明 |
|---|---|---|
| `courseUrl` | 示例课程 | 课程 / 视频链接 |
| `courseDisplayName` | — | 写进文档里的课程名 |
| `feishuParent` | 必填 | 飞书知识库父节点链接或 token |
| `feishuDomain` | 自动推导 | 拼 wiki 链接用的域名,留空则从 `feishuParent` 推导 |
| `groupByWeek` | `true` | 按 Week / Module 建目录 |
| `llmBaseUrl` / `llmModel` | DeepSeek | 首选 LLM 接口与模型 |
| `llmProviders` | `[]` | 额外要尝试的服务商(见下) |
| `llmConcurrency` | `3` | 翻译并发数 |
| `translateChunkSize` | `60` | 每批翻译多少句 |
| `segmentSentences` | `true` | 是否把字幕片段合并成完整句子 |
| `proxyUrl` / `proxyMode` | 自动 | 代理设置,`auto` = 直连优先、失败才走代理 |
| `ytDlpPath` / `youtubeYtDlp` | 自动 | YouTube 字幕兜底 |
| `courseraCookie` | 空 | 只有 Coursera 需要 |

---