dsh-bili-watch 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,10 +2,12 @@
2
2
 
3
3
  把一条 B 站视频变成模型能读的内容:元数据、评论、弹幕、AI 字幕、本地转写、抽帧 OCR。可以装在 DSH 里当插件,也能直接跑命令行。
4
4
 
5
- 取内容的顺序是先用文字(字幕或转写),文字不够再抽帧看画面。缺哪一档依赖就跳过哪一档,命令本身不会失败。
5
+ 取内容的顺序是先用文字(字幕或转写),文字不够再抽帧看画面。只读元数据、评论、弹幕、搜索、热榜不需要任何额外依赖;抽帧相关命令要 ffmpeg,没装会明确报错并指出装法,不会假装成功。
6
6
 
7
7
  ## 安装
8
8
 
9
+ ### 装进 DSH 当插件
10
+
9
11
  ```bash
10
12
  dsh plugin --profile web add dsh-bili-watch
11
13
  ```
@@ -16,12 +18,21 @@ dsh plugin --profile web add dsh-bili-watch
16
18
 
17
19
  插件依赖 DSH 自带的 `@deepseek-ai/dsh-tools`(peer,optional)。profile 里缺这个包时 `index.js` 会报 `ERR_MODULE_NOT_FOUND`,先补装再重启。
18
20
 
21
+ ### 只当命令行工具
22
+
23
+ ```bash
24
+ npm i -g dsh-bili-watch
25
+ bili-watch view BV1EPnG6DEJC
26
+ ```
27
+
28
+ 不装全局也行:clone 仓库后在目录里跑 `node tools/look.mjs view BV1EPnG6DEJC`。命令行的依赖和插件完全一样,`scripts/fetch-deps` 同样可用。
29
+
19
30
  ## 依赖
20
31
 
21
32
  | 能力 | 需要 | 没有时 |
22
33
  |---|---|---|
23
34
  | 元数据 / 评论 / 弹幕 / 搜索 / 热榜 | 无(匿名 HTTP) | — |
24
- | 抽帧 / 九宫格 / 字幕带 | `ffmpeg` | 跳过,文字档仍可用 |
35
+ | 抽帧 / 九宫格 / 字幕带 | `ffmpeg` | 报错并提示装法(`text` 会降级到读图) |
25
36
  | AI 字幕 | 一次扫码登录(SESSDATA) | 返回「无字幕轨」,自动降级 |
26
37
  | 本地转写 | Python 3.10+ 与 faster-whisper(`deps/.venv-asr`) | 跳过,自动降级 |
27
38
  | 画面 OCR | Python 3.10+ 与 rapidocr_onnxruntime(`deps/.venv-ocr`) | 跳过,只剩基础抽帧 |
@@ -94,10 +105,12 @@ macOS/Linux 的 ffmpeg 用系统包管理器装,脚本只给提示。其余目
94
105
  | `search <关键词> [--days 3]` | 搜视频 |
95
106
  | `hot [--limit 10]` | 综合热门榜 |
96
107
  | `login [--check] [--poll]` | 扫码登录 |
97
- | `clean` | 清空临时目录 `%TEMP%\bili-watch` |
108
+ | `clean` | 清空系统临时目录下的 `bili-watch`(Windows 是 `%TEMP%\bili-watch`) |
98
109
 
99
110
  工具侧的等价入口:`bili_watch` 工具(参数 `command` + `bv`),或 `/bili` 命令。
100
111
 
112
+ 表里只列常用参数。完整参数(`--out`、`--fresh`、`--scene`、`--ffmpeg`、`--cred`、`--fast`、`--mark-seen`、`--p` 等)跑 `bili-watch help` 看。
113
+
101
114
  ## 通用视频 URL
102
115
 
103
116
  `view` / `text` / `asr` / `frames` 接受非 B 站 URL(YouTube、X、直链 mp4 等),走 yt-dlp:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-bili-watch",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "Bilibili video reader for DSH: subtitles, ASR, frame OCR, comments, danmaku.",
6
6
  "type": "module",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@deepseek-ai/dsh": ">=0.2.0-rc.1 <0.3.0-0",
57
- "@deepseek-ai/dsh-tools": "*"
57
+ "@deepseek-ai/dsh-tools": ">=0.2.0-rc.1 <0.3.0-0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@deepseek-ai/dsh": {