DeepSeek Harness Plugin

stallenlu/dsh-yt-downloader

Stars ★ 0 Downloads (30d) 296 Category Tools & Capabilities Added 2026-12-01 npm dsh-yt-downloader

Sidebar video downloader supporting 1000+ sites via yt-dlp, with resume, persistent download history, and local speech-to-text video notes with key screenshots. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-yt-downloader

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:stallenlu/dsh-yt-downloader

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

非官方二次开发版本,基于 chen-bi/dsh-yt-downloader。 原项目版权归原作者所有;本仓库由社区维护,与原作者无隶属或背书关系。详见文末「致谢与免责声明」。

侧边栏常驻的视频下载面板:把链接丢进来,选画质,下载。支持 YouTube / B 站 / X / 直链等 yt-dlp 支持的 1000+ 站点。

功能

  • 选画质下载:默认选择不高于 720p 的标准画质;需要高画质时手动指定即可(最高 4K)。
  • 仅音频:一键抽取音频(默认 mp3)。
  • 断点续传:失败后点「继续下载」接着下,配合重试参数应对网络抖动与大文件。
  • 持久化下载历史:历史写入 ~/.dsh/yt-downloader/history.json,最多保留 200 条,重启 DSH 不丢。
  • 视频转结构化笔记(可选):视频下载完成后本地转写语音、抽取关键截图,生成 笔记.md / transcript.json / shots/。
  • 跟随系统代理:自动读取 Windows 代理设置,也可在设置里手动填写;面板显示代理是否在线。
  • Cookie 墙处理:支持 cookies-from-browser;遇到登录墙可换节点或先退出浏览器再取 cookie(Firefox 通常最稳)。
  • 下载目录默认是 ~/Downloads,可在设置里修改。

安装

方式 A:npm(推荐)

npm install dsh-yt-downloader
cd node_modules/dsh-yt-downloader
npm run setup        # 把 yt-dlp 装进插件自带 vendor/,不污染全局 Python
npm run setup-vnote  # 可选:安装语音转笔记依赖(较慢,首次运行会下载模型)

方式 B:源码

git clone https://github.com/stallenlu/dsh-yt-downloader.git
cd dsh-yt-downloader
npm run setup
npm run setup-vnote  # 可选

然后在 DSH 的 plugin_manager 里把 bundle 指向本目录安装/热加载。

注意:DSH host 侧对 Node 模块有缓存。更新插件代码后需要完整重启 DSH,仅开关插件(toggle)不会重新执行旧模块;面板前端刷新页面即可。

视频转笔记的可移植配置

用途 环境变量 默认值
ffmpeg 可执行文件 VNOTE_FFMPEG 优先 vendor/bin,其次 ~/.pyffmpeg/bin,最后 PATH
语音模型 VNOTE_MODEL small
Hugging Face 镜像 VNOTE_HF_ENDPOINT https://hf-mirror.com

模型缓存默认落在插件的 .vnote-cache/(不进 git)。笔记依赖装在 vnote-venv/(不进 git)。

项目结构

文件 说明
index.js 后端:HTTP 接口、yt-dlp 调度、断点续传、历史、笔记任务
client.js 前端:侧边栏面板、队列、画质选择、历史与笔记按钮
vnote.py / vnote-launcher.py 语音转写 + 关键帧截图 + Markdown 生成
scripts/setup-ytdlp.mjs 把 yt-dlp 装进 vendor/
scripts/setup-vnote.mjs 把笔记依赖装进 vnote-venv/
cordis.patch.yml DSH bundle 注入清单
smoke.mjs / client-smoke.mjs / download-test.mjs 冒烟与下载测试

HTTP 接口(前缀 /api/ytdl)

state、probe、download、retry、note、jobs、history、cancel、remove、open、settings。

依赖

  • Node.js 18+ / DSH 桌面端
  • Python 3.9+(仅 setup / 笔记功能需要)
  • yt-dlp(npm run setup 自动安装)
  • ffmpeg(npm run setup 配套安装,或系统已有)
  • 笔记功能额外需要 faster-whisper / av / ctranslate2(npm run setup-vnote)

致谢与免责声明

  • 本项目是 chen-bi/dsh-yt-downloader 的非官方社区分支,在其基础上增加了断点续传、下载历史与视频转笔记等功能。原项目版权及著作权归原作者所有,遵循其 MIT LICENSE。
  • 本项目同时依赖 yt-dlp、faster-whisper、FFmpeg 等开源项目,版权分别归各自作者所有。
  • 本项目非官方产品,与原作者、DeepSeek 官方及上述依赖项目均无隶属、授权或背书关系。使用者应自行遵守目标网站的条款与所在地区的法律法规;仅供个人学习与研究使用,因使用本项目产生的任何后果由使用者自行承担。
  • 原介绍页:https://chen-bi.github.io/dsh-yt-downloader/

License

MIT(本分支新增代码的许可;原项目版权仍归原作者)。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.