mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
b92755597c
* feat(bilibili): add video command Add `opencli bilibili video <bvid|url|short-link>` to fetch one video's metadata via the public /x/web-interface/view endpoint. Returns title, author, category, publish time, duration, view / danmaku / reply / like / coin / favorite / share counts, parts, thumbnail, and description as a key/value table. Reuses `resolveBvid` and `apiGet` from clis/bilibili/utils.js to stay consistent with the existing bilibili adapters (subtitle/search/etc. all follow the same navigate + apiGet pattern). Non-zero API codes surface as CommandExecutionError. Fills a visible gap: existing bilibili commands cover search, hot, subtitle, ranking, user-videos etc., but nothing returned metadata for a single video — `web read` only gets a DOM shell. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(manifest): register bilibili video command --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: jackwener <jakevingoo@gmail.com>