karin-plugin-kkk 1.6.3 → 1.6.5
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/CHANGELOG.md +14 -0
- package/README.md +12 -58
- package/lib/apps/admin.js +2 -2
- package/lib/apps/help.js +1 -1
- package/lib/apps/push.js +2 -2
- package/lib/apps/tools.js +3 -3
- package/lib/chunk/{index-DFG1FykQ.js → index-tB0niZhV.js} +487 -328
- package/lib/chunk/{push-DgiTECXK.js → push-B82eNoi0.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/web.config.js +2 -2
- package/package.json +6 -1
- package/resources/template/apiError/css/index.css +290 -0
- package/resources/template/apiError/html/index.html +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# 变更日志
|
|
2
2
|
|
|
3
|
+
## [1.6.5](https://github.com/ikenxuan/karin-plugin-kkk/compare/v1.6.4...v1.6.5) (2025-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **config:** 移除接口中的冗余索引签名并修复配置引用 ([97d7237](https://github.com/ikenxuan/karin-plugin-kkk/commit/97d72379317db1f235fe83bd6454ba4f8db2656f))
|
|
9
|
+
|
|
10
|
+
## [1.6.4](https://github.com/ikenxuan/karin-plugin-kkk/compare/v1.6.3...v1.6.4) (2025-05-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **错误处理:** 添加中间件代理以处理请求错误 [#94](https://github.com/ikenxuan/karin-plugin-kkk/issues/94) ([f85fe48](https://github.com/ikenxuan/karin-plugin-kkk/commit/f85fe487d68fe04997c9eddf50e6ebe5218f89da))
|
|
16
|
+
|
|
3
17
|
## [1.6.3](https://github.com/ikenxuan/karin-plugin-kkk/compare/v1.6.2...v1.6.3) (2025-05-24)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# karin-plugin-kkk
|
|
2
2
|
|
|
3
|
-
🦄 **_Karin 的「抖音」「B
|
|
4
|
-
|
|
5
|
-
PS: 快手暂不支持推送
|
|
3
|
+
🦄 **_Karin 的「抖音」「B 站」视频解析/动态推送插件_**
|
|
6
4
|
|
|
7
5
|
## ⬇️ 安装
|
|
8
6
|
|
|
@@ -10,8 +8,8 @@ PS: 快手暂不支持推送
|
|
|
10
8
|
<details>
|
|
11
9
|
<summary>点击展开</summary>
|
|
12
10
|
|
|
13
|
-
在 **Karin 根目录**
|
|
14
|
-
|
|
11
|
+
在 **Karin 根目录** 下运行<br />
|
|
12
|
+
手动更新时更新也可以使用该命令
|
|
15
13
|
```sh
|
|
16
14
|
pnpm add karin-plugin-kkk@latest -w
|
|
17
15
|
```
|
|
@@ -20,35 +18,12 @@ PS: 快手暂不支持推送
|
|
|
20
18
|
|
|
21
19
|
<br />
|
|
22
20
|
|
|
23
|
-
-
|
|
21
|
+
- ~~克隆编译产物 **`build 分支`**(比较推荐)~~
|
|
24
22
|
<details>
|
|
25
23
|
<summary>点击展开</summary>
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```sh
|
|
30
|
-
git clone --depth=1 -b build https://github.com/ikenxuan/karin-plugin-kkk.git ./plugins/karin-plugin-kkk/
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
<details>
|
|
34
|
-
<summary>如果你的 git 无法访问至 Github...点击打开查看解决方法</summary>
|
|
35
|
-
|
|
36
|
-
> 若克隆无法连接到 Github,可以使用 GitHub Proxy 提供的镜像加速克隆
|
|
37
|
-
> 建议收藏 [GitHub Proxy 最新地址发布](https://ghproxy.link/) 站点,以免镜像站被 GFW 封锁导致克隆失败
|
|
38
|
-
>
|
|
39
|
-
> ```sh
|
|
40
|
-
> git clone --depth=1 -b build https://ghgo.xyz/https://github.com/ikenxuan/karin-plugin-kkk.git ./plugins/karin-plugin-kkk/
|
|
41
|
-
> ```
|
|
42
|
-
|
|
43
|
-
</details>
|
|
44
|
-
<br>
|
|
45
|
-
|
|
46
|
-
2. 安装依赖
|
|
47
|
-
安装依赖,在 **Karin 根目录** 下运行
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
pnpm install --filter=karin-plugin-kkk
|
|
51
|
-
```
|
|
25
|
+
由于上游框架 Karin 有全面拥抱 `包模块化` 的嫌疑,所以使用 git clone 安装的方法 **不再推荐**<br />
|
|
26
|
+
若实在需使用该安装方法,请自行切换到 `build` 分支,安装教程不多赘述
|
|
52
27
|
|
|
53
28
|
</details>
|
|
54
29
|
|
|
@@ -71,28 +46,17 @@ PS: 快手暂不支持推送
|
|
|
71
46
|
git clone https://github.com/你的GitHub用户名/karin-plugin-kkk.git
|
|
72
47
|
```
|
|
73
48
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```sh
|
|
77
|
-
cd karin-plugin-kkk/
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
4. 初始化开发环境
|
|
81
|
-
|
|
49
|
+
1. 初始化开发环境
|
|
50
|
+
以下命令同 `pnpm i`
|
|
82
51
|
```sh
|
|
83
52
|
pnpm run init
|
|
84
53
|
```
|
|
85
54
|
|
|
86
|
-
5.
|
|
87
|
-
|
|
55
|
+
5. 启动开发环境
|
|
56
|
+
以下命令任选一个即可
|
|
88
57
|
```sh
|
|
89
|
-
pnpm
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
6. 启动开发环境
|
|
93
|
-
|
|
94
|
-
```sh
|
|
95
|
-
pnpm dev
|
|
58
|
+
pnpm dev # tsx 直接运行,不自动重启
|
|
59
|
+
pnpm watch # tsx 监听文件变化并自动重启
|
|
96
60
|
```
|
|
97
61
|
|
|
98
62
|
</details>
|
|
@@ -125,16 +89,6 @@ pnpm dev
|
|
|
125
89
|
|
|
126
90
|
本项目的开发参考了以下开源项目部分代码,排名不分先后
|
|
127
91
|
|
|
128
|
-
**部分代码借鉴**
|
|
129
|
-
|
|
130
|
-
- [xfdown/xiaofei-plugin](https://gitee.com/xfdown/xiaofei-plugin)
|
|
131
|
-
- [kyrzy0416/rconsole-plugin](https://gitee.com/kyrzy0416/rconsole-plugin)
|
|
132
|
-
- [think-first-sxs/reset-qianyu-plugin](https://gitee.com/think-first-sxs/reset-qianyu-plugin)
|
|
133
|
-
- [yeyang52/yenai-plugin](https://github.com/yeyang52/yenai-plugin)
|
|
134
|
-
- [XasYer/Shiranai-Plugin](https://github.com/XasYer/Shiranai-Plugin)
|
|
135
|
-
- [XasYer/YePanel](https://github.com/XasYer/YePanel)
|
|
136
|
-
- 更多待补充...
|
|
137
|
-
|
|
138
92
|
**接口文档与加密参数算法**
|
|
139
93
|
|
|
140
94
|
- [ikenxuan/amagi](https://github.com/ikenxuan/amagi)
|
package/lib/apps/admin.js
CHANGED
|
@@ -2,12 +2,12 @@ import fs from "node:fs";
|
|
|
2
2
|
import karin, { segment, common, handler, logger } from "node-karin";
|
|
3
3
|
import require$$1 from "path";
|
|
4
4
|
import "sequelize";
|
|
5
|
-
import { g as getBilibiliData, f as browserExports, C as Common, a as Config } from "../chunk/index-
|
|
5
|
+
import { g as getBilibiliData, f as browserExports, C as Common, a as Config } from "../chunk/index-tB0niZhV.js";
|
|
6
6
|
import { Version } from "../Version.js";
|
|
7
7
|
import "node-karin/axios";
|
|
8
8
|
import "stream/promises";
|
|
9
9
|
import "node:path";
|
|
10
|
-
import "../chunk/push-
|
|
10
|
+
import "../chunk/push-B82eNoi0.js";
|
|
11
11
|
import "../chunk/index-BrN8TlU-.js";
|
|
12
12
|
import { execSync, spawn } from "node:child_process";
|
|
13
13
|
import { chromium } from "playwright";
|
package/lib/apps/help.js
CHANGED
|
@@ -4,7 +4,7 @@ import { m as markdown } from "../chunk/index-BrN8TlU-.js";
|
|
|
4
4
|
import karin, { mkdirSync, render, segment, isPackaged, updatePkg, updateGitPlugin, logger, common, restart } from "node-karin";
|
|
5
5
|
import { karinPathTemp } from "node-karin/root";
|
|
6
6
|
import "sequelize";
|
|
7
|
-
import { R as Render, a as Config, C as Common } from "../chunk/index-
|
|
7
|
+
import { R as Render, a as Config, C as Common } from "../chunk/index-tB0niZhV.js";
|
|
8
8
|
import { Version } from "../Version.js";
|
|
9
9
|
import "node-karin/axios";
|
|
10
10
|
import "stream/promises";
|
package/lib/apps/push.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Config, B as Bilibilipush, h as getDouyinData, g as getBilibiliData } from "../chunk/index-
|
|
1
|
+
import { a as Config, B as Bilibilipush, h as getDouyinData, g as getBilibiliData } from "../chunk/index-tB0niZhV.js";
|
|
2
2
|
import karin from "node-karin";
|
|
3
3
|
import "sequelize";
|
|
4
4
|
import "../Version.js";
|
|
@@ -6,7 +6,7 @@ import "node:fs";
|
|
|
6
6
|
import "node-karin/axios";
|
|
7
7
|
import "stream/promises";
|
|
8
8
|
import "node:path";
|
|
9
|
-
import { D as DouYinpush } from "../chunk/push-
|
|
9
|
+
import { D as DouYinpush } from "../chunk/push-B82eNoi0.js";
|
|
10
10
|
import "../chunk/index-BrN8TlU-.js";
|
|
11
11
|
import "node:child_process";
|
|
12
12
|
import "playwright";
|
package/lib/apps/tools.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import karin, { logger } from "node-karin";
|
|
2
2
|
import "sequelize";
|
|
3
|
-
import { N as Networks, a as Config, e as Client, i as Base, R as Render, j as downloadVideo, k as Bilibili, C as Common } from "../chunk/index-
|
|
3
|
+
import { N as Networks, a as Config, e as Client, i as Base, R as Render, j as downloadVideo, k as Bilibili, C as Common } from "../chunk/index-tB0niZhV.js";
|
|
4
4
|
import "../Version.js";
|
|
5
5
|
import "node:fs";
|
|
6
6
|
import "node-karin/axios";
|
|
7
7
|
import "stream/promises";
|
|
8
8
|
import "node:path";
|
|
9
|
-
import { g as getDouyinID, a as DouYin } from "../chunk/push-
|
|
9
|
+
import { g as getDouyinID, a as DouYin } from "../chunk/push-B82eNoi0.js";
|
|
10
10
|
import "node:child_process";
|
|
11
11
|
import "playwright";
|
|
12
12
|
async function getBilibiliID(url) {
|
|
@@ -223,7 +223,7 @@ class Kuaishou extends Base {
|
|
|
223
223
|
await this.e.reply("不支持解析的视频");
|
|
224
224
|
return true;
|
|
225
225
|
}
|
|
226
|
-
Config.kuaishou.
|
|
226
|
+
Config.kuaishou.tip && await this.e.reply("检测到快手链接,开始解析");
|
|
227
227
|
const video_url = data.VideoData.data.visionVideoDetail.photo.photoUrl;
|
|
228
228
|
const transformedData = Object.entries(data.EmojiData.data.visionBaseEmoticons.iconUrls).map(([name, path]) => {
|
|
229
229
|
return { name, url: `https:${path}` };
|