bilibili-note-plugin: A DSH Network Plugin for Converting Bilibili Links to Obsidian Notes

Introduction

When processing Bilibili videos in DeepSeek Harness, a common approach is to temporarily write scripts to pull subtitles and then manually organize them into Markdown. The repetitive labor centers on fetching, parsing timelines, and validating output; summaries, key points, and tags still require human or model judgment. If you want to lock the “mechanical steps” into a reusable capability and mount the skill into the DSH catalog instead of copying SKILL.md to ~/.agents/skills every time, you can install a plugin-wrapped version of the upstream bilibili-note project.

Below we introduce 3588834014-del/bilibili-note-plugin by maintainer 3588834014-del under the SkillHub category “Web Tools”: it turns Bilibili video links into structured Obsidian notes, downloading only subtitles, not videos.

What Is This

This repository is a DSH plugin wrapper for 3588834014-del/bilibili-note: it adds bundle packaging such as package.json, cordis.patch.yml, and lib/index.js on top of the upstream CLI / skill. When you do not need to install it as a DSH plugin, you should use the upstream repository’s skill or CLI.

The plugin’s npm package name is dsh-bilibili-note (version 1.2.0 in current materials), licensed under MIT. The workflow can be summarized as:

Bilibili URL ──▶ fetch ──▶ manifest.json ──▶ [you / agent] ──▶ content.json ──▶ write ──▶ note.md

fetch uses yt-dlp with --skip-download enforced, and validates that no media files such as .mp4, .flv, .m4a, or .part appear in the working directory; the “judgment steps” such as summary, key points, and tags are filled in by you or the model according to the documented contract.

Core Features

Subtitles Only, No Empty Notes

The tool only goes through the yt-dlp subtitle channel; it does not reverse-engineer or call private APIs. When there are no subtitles it skips and explains, does not fabricate content, and does not write empty notes.

Merge Timelines for Multi-Part Collections

For Bilibili multi-part collections, it fetches subtitles for each part and rebases timestamps onto a single continuous timeline. When a part has no subtitles, its subtitle content is skipped but its time slot is preserved, preventing subsequent timestamp misalignment. If multiple parts’ subtitles are byte-identical, it exits with an error to avoid silently writing duplicated content as a note.

Note Structure

The generated Markdown targets Obsidian: it contains YAML front matter, a summary section, a key-points list with clickable ?t= jump links, and the full transcript collapsed at the bottom.

Registered as a DSH Skill

After installation, the bilibili-note skill is registered into the DSH skill catalog; the plugin ships scripts/bili_note.py, docs/, and SKILL.md, and rewrites the <skill-dir> placeholder in the skill body to the absolute installation path so the model does not guess script locations. The model can be triggered via “B站笔记” or by pasting a BV link.

Installation and Activation

Key dependencies and permissions (read the upstream README before installing):

Requirement Description
Python 3.8+ The script itself uses only the standard library
yt-dlp External command, not a Python package; pip install -U yt-dlp
Bilibili cookies AI subtitles usually require a logged-in session; see below
DSH Plugin/skill path requires >=0.2.0-rc.2 <0.3.0

The plugin runs with the current dsh process permissions, accesses the network (via yt-dlp connecting to bilibili.com), reads the cookie file, and writes files to the specified note directory and working directory. Please review the GitHub source and license before installing.

In DeepSeek Harness, it is recommended to install using the web profile:

dsh plugin --profile web add github:3588834014-del/bilibili-note-plugin

After installation, restart the corresponding profile so the skill appears in the catalog. To uninstall:

dsh plugin --profile web remove dsh-bilibili-note

Note: there is no npm published package yet; this is a source installation. It can be searched on dsh-plugin.org, but it will not appear in the in-app plugin store. With pnpm ≥10, it may prompt to allow build scripts for git dependencies; this package has no prepare script and will not run build scripts during installation.

Cookie Configuration

Bilibili’s AI subtitle interface requires a logged-in session. Some videos with uploader-provided subtitles may not need cookies.

  1. Install the browser extension Get cookies.txt LOCALLY.
  2. Log in to bilibili.com.
  3. Export cookies.txt.
  4. Place it in the working directory, or set an environment variable:
export BILI_COOKIES=/path/to/cookies.txt      # Linux / macOS
$env:BILI_COOKIES = "C:\path\cookies.txt"     # PowerShell

The Netscape format exported by the extension often carries “leading dot on domain + inconsistent host-only flag” issues, causing yt-dlp to fail loading the entire file, which looks like “no subtitles”. The plugin’s normalize_cookies() performs normalization (removes leading dots, filters bilibili domains, deduplicates), so manual cookie editing is not needed.

The tool reads cookies and writes a normalized temporary copy next to the working directory for yt-dlp to use; it does not upload, log, or commit cookies.

Typical Usage

In DSH

After installation and profile restart, tell the model “B站笔记” or paste a Bilibili video link, complete the summary and key points in content.json according to the SKILL.md contract, and let the script write to the vault.

Standalone CLI (Same Implementation as the Plugin)

If you don’t use the plugin, you can also install via pipx or locally in the upstream repository and invoke it (it shares scripts/bili_note.py with the plugin):

bili-note --version
bili-note note "https://www.bilibili.com/video/BVxxxxxxxxx" \
    --note-dir ~/MyVault/Sources/Videos

The note output directory is specified by parameters such as --note-dir; there are no hardcoded paths in the repository.

Use Cases and Notes

Suitable for: DSH users who want to turn Bilibili learning/interview videos into searchable Obsidian notes and explicitly do not want video files written to disk; scenarios requiring a single timeline transcript for long multi-part collections.

Notes:

  • Network access and cookies both happen in your local dsh environment; keep cookies.txt safe.
  • The judgment layer (summary, tags, key points) still needs to be completed by the model or manually according to the contract; the plugin does not replace content understanding.
  • The community catalog SkillHub plugin page and dsh-plugin.org are independent ecosystem sites with no official affiliation with DeepSeek / High-Flyer.

Conclusion

bilibili-note-plugin encapsulates the mechanical steps of “Bilibili URL → subtitle manifest → structured Obsidian note” into a DSH bundle skill: it pulls only subtitles, validates that no media is written to disk, and writes the script path into the skill body. When you need the plugin form, one official command is enough; when you only need the CLI or manual skill, use the upstream bilibili-note.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye