dsh-tv-player 1.4.0 → 1.4.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.
- package/README.md +32 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
> **非官方、社区维护项目**:本插件与 DeepSeek Harness 官方无任何关联,仅作为个人学习/自用工具提供。
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-tv-player)
|
|
6
|
+
[](https://github.com/oiqizi/dsh-tv-player)
|
|
7
|
+
|
|
8
|
+
- **npm**:https://www.npmjs.com/package/dsh-tv-player
|
|
9
|
+
- **GitHub**:https://github.com/oiqizi/dsh-tv-player
|
|
10
|
+
|
|
5
11
|
DSH 电视插件 —— 在 DeepSeek Harness 里直播 **8 个确定稳定的频道**(浙江 / 延边 / 香港 / 内蒙古 / 河北 / 东方卫视 + CCTV-9 纪录 / CCTV-12 社会与法),白底黑字的播放条与全宽电视画面,写代码时把电视放在聊天输入框上方,是 **Vibe coding 时的好伴侣**。
|
|
6
12
|
|
|
7
13
|
参考 `dsh-music-player` 的双面结构:Host 端跑频道目录 + 同源直播流代理 + `tv_play` 模型工具,Web 端用 `<video>` + hls.js 播放。
|
|
@@ -23,7 +29,28 @@ DSH 电视插件 —— 在 DeepSeek Harness 里直播 **8 个确定稳定的频
|
|
|
23
29
|
|
|
24
30
|
## 安装
|
|
25
31
|
|
|
26
|
-
###
|
|
32
|
+
### 方式一:编辑 profile(推荐,已发布到 npm)
|
|
33
|
+
|
|
34
|
+
1. 打开目标 profile 的 `package.json`(例如 `~/.dsh/profiles/<profile>/package.json`),把 `dsh-tv-player` 同时加到 `dependencies` 和 `dsh.profile.bundles`:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"dependencies": { "dsh-tv-player": "^1.4.0" },
|
|
39
|
+
"dsh": { "profile": { "bundles": [ "...", "dsh-tv-player" ] } }
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
> ⚠️ `dependencies` 和 `dsh.profile.bundles` **两个都要加**——漏了 `bundles` 插件不会被加载,界面/路由都不会出现。
|
|
44
|
+
|
|
45
|
+
2. 在 profile 目录执行:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
pnpm install
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
3. 重启 DSH。
|
|
52
|
+
|
|
53
|
+
### 方式二:本地 tgz(自用 / 内部分发)
|
|
27
54
|
|
|
28
55
|
```sh
|
|
29
56
|
# 1) 打包
|
|
@@ -42,16 +69,10 @@ npm pack # 产出 dsh-tv-player-<version>.tgz
|
|
|
42
69
|
```
|
|
43
70
|
3. 安装并重启:
|
|
44
71
|
```sh
|
|
45
|
-
pnpm install #
|
|
72
|
+
pnpm install # 在 profile 目录执行
|
|
46
73
|
# 然后重启 DSH
|
|
47
74
|
```
|
|
48
75
|
|
|
49
|
-
### 方式二:发布到 npm 后
|
|
50
|
-
|
|
51
|
-
```sh
|
|
52
|
-
dsh plugin --profile <profile> add dsh-tv-player
|
|
53
|
-
```
|
|
54
|
-
|
|
55
76
|
安装后重启 DSH,打开 Web GUI:聊天输入框上方会出现「DSH 电视」播放条。
|
|
56
77
|
|
|
57
78
|
## 使用
|
|
@@ -123,7 +144,7 @@ Web(lib/client.js)
|
|
|
123
144
|
|
|
124
145
|
```sh
|
|
125
146
|
npm pack # 产出 dsh-tv-player-<version>.tgz
|
|
126
|
-
|
|
147
|
+
# 手动安装:编辑 profile 的 package.json(dependencies + dsh.profile.bundles),然后 pnpm install
|
|
127
148
|
```
|
|
128
149
|
|
|
129
150
|
修改 `lib/` 后**升版本号**重新打包安装(pnpm 对同版本 file 依赖不重取);仅客户端改动可刷新页面生效,Host 改动需重启 DSH。
|
|
@@ -131,9 +152,8 @@ dsh plugin --profile <profile> add file:<tgz 路径> # 安装
|
|
|
131
152
|
## 回滚(卸载)
|
|
132
153
|
|
|
133
154
|
```sh
|
|
134
|
-
# 1)
|
|
135
|
-
|
|
136
|
-
# 2) 编辑 profile 的 package.json,从 dsh.profile.bundles 里删掉 "dsh-tv-player"
|
|
155
|
+
# 1) 编辑 profile 的 package.json:从 dependencies 和 dsh.profile.bundles 里都删掉 "dsh-tv-player"
|
|
156
|
+
# 2) 在 profile 目录执行 pnpm install
|
|
137
157
|
# 3) 重启 DSH
|
|
138
158
|
```
|
|
139
159
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tv-player",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "DSH 电视插件:在 DeepSeek Harness 里直播 8 个确定稳定的频道(CCTV-9 纪录、CCTV-12 社会与法与浙江/延边/香港/内蒙古/河北/东方卫视),支持临时频道搜索,白底播放条与全宽电视画面,Vibe coding 时的好伴侣。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|