Turn a Bilibili video URL or BV number into a human-like XMind mind map. Use when the user wants to collect subtitles, comments, AI summary, and transcript fallback, then generate structured notes or mind maps for a Bilibili video.
Turn a Bilibili video into a mind map that feels closer to something a human actually organized.
Recommended Flow
- Python scripts collect video details, subtitles, AI summary, comments, and ASR fallback when needed.
The host platform's injected model reads the prepared context and writes a high-quality outline.md.
Python renders outline.md into an .xmind file.
Preconditions
- bili must be installed and available.
If audio fallback is needed, bilibili-cli[audio] should be installed.
If cloud ASR is used on Windows, the Aliyun config file should already exist.
If local ASR is preferred on Linux or macOS, make sure the Parakeet endpoint is running.
Core Constraints
- Prefer subtitles first. Only fall back to ASR when subtitles are unavailable.
Login check is mandatory: run bili status before bili login.
The main way to produce outline.md should be the host model, not the local rule-based script.
The main structure should come from subtitles or ASR. Comments and the site AI summary are supplemental only.
Do not mechanically copy spoken transcript text. Merge themes, compress phrasing, and organize by logic.
If information is weak or incomplete, mark it explicitly instead of inventing facts.
Main Workflow
1. Accept either a full video URL or a BV id.
Run bili status to check login.
If needed, run bili login and wait for the user to scan.
Run python scripts/prepare_bili_context.py --source <video-url-or-bv> --login-if-needed --transcribe-if-needed.
Read the generated files: context.md, host_outline_prompt.md, manifest.json, video_details.json, subtitles.txt, ai_summary.txt, and comments.txt.
Feed host_outline_prompt.md to the host platform model and let it write outline.md. Only use scripts/generate_outline.py when the host model path is unavailable.
Run python scripts/render_xmind.py --outline <output-dir/outline.md> --output <output-dir/result.xmind>.
Tell the user where the .xmind file was written and which sources were most important.
One-Command Workflow
INLINECODE24 now supports two workflows:
- --workflow host: recommended quality path. Collects context first, then waits for a host-generated outline.md.