| name | bilibili-upload-bridge |
| description | Use when Dasheng Publish needs to prepare, upload, or package Bilibili video submissions from completed transwrite video channel packs. |
Bilibili Upload Bridge
Role
Bridge Dasheng Publish channel packs to external B站 upload tools. Prefer biliup-rs; use social-auto-upload as fallback. Both are external dependencies, not vendored and not version-locked.
Default roots:
${BILIUP_RS_ROOT:-/Volumes/PSSD/biliup-rs}
${SOCIAL_AUTO_UPLOAD_ROOT:-/Volumes/PSSD/social-auto-upload}
Inputs
channel_pack.json for bilibili_video
- Final MP4
- Optional SRT/subtitle
- Title, description, tags, cover
Workflow
- Check upstream registry:
python3 scripts/check_publish_upstreams.py --name biliup-rs
- Validate final video exists.
- Build B站 submission package:
- title
- description
- tags
- cover
- video path
- subtitle path when present
python3 scripts/build_video_upload_package.py --channel-pack <channel_pack.json>
- Prefer a dry-run or draft/upload preview when the external tool supports it.
- Ask for explicit confirmation before real submission.
- Write platform response, draft ID, URL, screenshot, or fallback reason back to the publish package.
Fallback
If biliup-rs is missing, broken, or cannot authenticate:
- Try
social-auto-upload-bridge for Bilibili.
- If that fails, export an人工投稿包 and mark status
manual_package.
Hard Rules
- B站 uploads are not considered published until a URL,稿件 ID, or platform response is recovered and verified.
- Do not store B站 cookies or account secrets inside this repo or
skills/.
- Do not mark
ready_for_execution if the MP4 is missing.
- If the account requires CAPTCHA/SMS/manual login, stop and request user action.
Upstream
Tracked in:
configs/publish/upstream_repos.json