karin-plugin-kkk 2.26.3 → 2.26.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/lib/apps/__ready.js +1 -1
- package/lib/apps/admin.js +1 -1
- package/lib/apps/help.js +1 -1
- package/lib/apps/push.js +1 -1
- package/lib/apps/qrlogin.js +1 -1
- package/lib/apps/statistics.js +1 -1
- package/lib/apps/tools.js +1 -1
- package/lib/apps/update.js +1 -1
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/{ArticleWork-D14LCEB1.js → ArticleWork-CAvWDskr.js} +1 -1
- package/lib/core_chunk/{Comment-UWDnSqm2.js → Comment-B9VBhKOd.js} +1 -1
- package/lib/core_chunk/{Comment-e1XpFLfy.js → Comment-BdFIBFRM.js} +1 -1
- package/lib/core_chunk/{Comment--YcNH8IO.js → Comment-C6jcQZf_.js} +1 -1
- package/lib/core_chunk/{Comment-C5iPLRv3.js → Comment-C7xISu4_.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_ARTICLE-wnu4anMq.js → DYNAMIC_TYPE_ARTICLE-CnEYoNYU.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_AV-IIMCcGHT.js → DYNAMIC_TYPE_AV-CP3T0iWK.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_DRAW-D8UfRUGI.js → DYNAMIC_TYPE_DRAW-Br819-dc.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_FORWARD-CZpKsqyQ.js → DYNAMIC_TYPE_FORWARD-CIs4Hnf3.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_LIVE_RCMD-DlsolGE7.js → DYNAMIC_TYPE_LIVE_RCMD-C-wYfS9-.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_WORD-Dco0v-Bv.js → DYNAMIC_TYPE_WORD-Cv08Qkom.js} +1 -1
- package/lib/core_chunk/{Dynamic-CCsHtq8o.js → Dynamic-BOIaYQ1r.js} +1 -1
- package/lib/core_chunk/{FavoriteList-DeUYPbbY.js → FavoriteList-CkYhbG1o.js} +1 -1
- package/lib/core_chunk/{GlobalStatistics-KbG9MBTe.js → GlobalStatistics-rPHCGgxu.js} +1 -1
- package/lib/core_chunk/{GroupStatistics-Br5u6Cu_.js → GroupStatistics-B6uJ4Z4n.js} +1 -1
- package/lib/core_chunk/{Help-lLrw9Qe8.js → Help-Cgy6eaaY.js} +1 -1
- package/lib/core_chunk/{ImageWork-BxR_Y6gl.js → ImageWork-4YoCDSWX.js} +1 -1
- package/lib/core_chunk/{Live-C24hQlNO.js → Live-C2UwsLm1.js} +1 -1
- package/lib/core_chunk/{MusicInfo-vO6hp4jj.js → MusicInfo-CKqAbk5s.js} +1 -1
- package/lib/core_chunk/{RecommendList-C5OVFfuK.js → RecommendList-DeWcGJuI.js} +1 -1
- package/lib/core_chunk/{UserList-CReD5eLf.js → UserList-BeknhQcy.js} +1 -1
- package/lib/core_chunk/{UserList-CNSLLIwz.js → UserList-ofJ0j0z9.js} +1 -1
- package/lib/core_chunk/{UserVideoList-Bpmo0h2u.js → UserVideoList-CIO4qkQ2.js} +1 -1
- package/lib/core_chunk/{VersionWarning-CgxNvIAC.js → VersionWarning-BBHORB8V.js} +1 -1
- package/lib/core_chunk/{VideoWork-m41lbfkF.js → VideoWork-QmhlOA1B.js} +1 -1
- package/lib/core_chunk/amagiClient-3JcmmG1l.js +3 -0
- package/lib/core_chunk/{bangumi-DlR1Myjy.js → bangumi-DwEnWLJ7.js} +1 -1
- package/lib/core_chunk/{changelog-CbudI7ce.js → changelog-Ce85OwiN.js} +1 -1
- package/lib/core_chunk/db-ChLhmmTR.js +3 -0
- package/lib/core_chunk/{handlerError-CEuyE7LE.js → handlerError-DK3R--9k.js} +1 -1
- package/lib/core_chunk/{main-CrkmaWSZ.js → main-dLOs0WSH.js} +86 -59
- package/lib/core_chunk/{noteInfo-EQ0e8FoU.js → noteInfo-C0Tq3gmo.js} +1 -1
- package/lib/core_chunk/{qrcodeImg-DiBJJuZu.js → qrcodeImg-BFwudFuF.js} +1 -1
- package/lib/core_chunk/{qrcodeImg-Vpwo_lsg.js → qrcodeImg-CWu66k8h.js} +1 -1
- package/lib/core_chunk/{qrlogin-CpD-wB1B.js → qrlogin-CbLnI4DH.js} +1 -1
- package/lib/core_chunk/{setup-Dn6C9WhF.js → setup-DeBKNMo5.js} +1 -1
- package/lib/core_chunk/template.js +1 -1
- package/lib/core_chunk/{videoInfo-DJuSIpNF.js → videoInfo-CpXjFzcf.js} +1 -1
- package/lib/core_chunk/{videoInfo-M8Vuh0fh.js → videoInfo-i92C0Atv.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/root.js +1 -1
- package/lib/web.config.js +1 -1
- package/package.json +2 -2
- package/lib/core_chunk/amagiClient-DiIZ6Q66.js +0 -3
- package/lib/core_chunk/db-DiSuBK-J.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [2.26.5](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.26.4...v2.26.5) (2026-03-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 错误修复
|
|
9
|
+
|
|
10
|
+
* 更新检测失败。 ([a91f4d7](https://github.com/ikenxuan/karin-plugin-kkk/commit/a91f4d79e5f41ab1e5661ad961bf9c3f62e51b1e))
|
|
11
|
+
|
|
12
|
+
## [2.26.4](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.26.3...v2.26.4) (2026-03-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 📦 依赖更新
|
|
16
|
+
|
|
17
|
+
* update ([63010c7](https://github.com/ikenxuan/karin-plugin-kkk/commit/63010c7874e30ed9ba8afd3c942602f7aba75ee9))
|
|
18
|
+
|
|
5
19
|
## [2.26.3](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.26.2...v2.26.3) (2026-03-24)
|
|
6
20
|
|
|
7
21
|
|
package/lib/apps/__ready.js
CHANGED
package/lib/apps/admin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { at as removeOldFiles, it as dylogin, ot as task, rt as biLogin } from "../core_chunk/main-
|
|
1
|
+
import { at as removeOldFiles, it as dylogin, ot as task, rt as biLogin } from "../core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
import "../core_chunk/vendor-DFuezFxA.js";
|
|
3
3
|
export { biLogin, dylogin, removeOldFiles, task };
|
package/lib/apps/help.js
CHANGED
package/lib/apps/push.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as setdyPush, J as changeBotID, K as bilibiliPush, Q as setbiliPush, X as douyinPushList, Y as douyinPush, Z as forcePush, et as testDouyinPush, q as bilibiliPushList } from "../core_chunk/main-
|
|
1
|
+
import { $ as setdyPush, J as changeBotID, K as bilibiliPush, Q as setbiliPush, X as douyinPushList, Y as douyinPush, Z as forcePush, et as testDouyinPush, q as bilibiliPushList } from "../core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
import "../core_chunk/vendor-DFuezFxA.js";
|
|
3
3
|
export { bilibiliPush, bilibiliPushList, changeBotID, douyinPush, douyinPushList, forcePush, setbiliPush, setdyPush, testDouyinPush };
|
package/lib/apps/qrlogin.js
CHANGED
package/lib/apps/statistics.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { U as globalStatistics, W as groupStatistics } from "../core_chunk/main-
|
|
1
|
+
import { U as globalStatistics, W as groupStatistics } from "../core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
import "../core_chunk/vendor-DFuezFxA.js";
|
|
3
3
|
export { globalStatistics, groupStatistics };
|
package/lib/apps/tools.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as kuaishouAPP, H as xiaohongshuAPP, R as bilibiliAPP, V as prefix, z as douyinAPP } from "../core_chunk/main-
|
|
1
|
+
import { B as kuaishouAPP, H as xiaohongshuAPP, R as bilibiliAPP, V as prefix, z as douyinAPP } from "../core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
import "../core_chunk/vendor-DFuezFxA.js";
|
|
3
3
|
export { bilibiliAPP, douyinAPP, kuaishouAPP, prefix, xiaohongshuAPP };
|
package/lib/apps/update.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { F as kkkUpdate, I as kkkUpdateCommand, L as update } from "../core_chunk/main-
|
|
1
|
+
import { F as kkkUpdate, I as kkkUpdateCommand, L as update } from "../core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
import "../core_chunk/vendor-DFuezFxA.js";
|
|
3
3
|
export { kkkUpdate, kkkUpdateCommand, update };
|
package/lib/build-metadata.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.26.
|
|
3
|
-
"buildTime": "2026-03-
|
|
4
|
-
"buildTimestamp":
|
|
2
|
+
"version": "2.26.5",
|
|
3
|
+
"buildTime": "2026-03-24T08:44:07.525Z",
|
|
4
|
+
"buildTimestamp": 1774341847525,
|
|
5
5
|
"name": "karin-plugin-kkk",
|
|
6
6
|
"description": "Karin 的「抖音」「B 站」视频解析/动态推送插件",
|
|
7
7
|
"homepage": "https://github.com/ikenxuan/karin-plugin-kkk",
|
|
8
|
-
"commitHash": "
|
|
9
|
-
"shortCommitHash": "
|
|
8
|
+
"commitHash": "199e2a57f2db7b05d0d16f0d958e441906cd56ef",
|
|
9
|
+
"shortCommitHash": "199e2a57"
|
|
10
10
|
}
|
|
@@ -21,7 +21,7 @@ import { snapka } from "@snapka/puppeteer";
|
|
|
21
21
|
import { newInjectedPage } from "fingerprint-injector";
|
|
22
22
|
import express from "node-karin/express";
|
|
23
23
|
globalThis.__kkkLoadStart ??= process.hrtime.bigint();
|
|
24
|
-
import("./setup-
|
|
24
|
+
import("./setup-DeBKNMo5.js");
|
|
25
25
|
var resolvePluginRoot = (startUrl) => {
|
|
26
26
|
let dir = path.dirname(startUrl);
|
|
27
27
|
for (let i = 0; i < 8; i++) {
|
|
@@ -5213,7 +5213,7 @@ var Cfg = class {
|
|
|
5213
5213
|
const fileName = path.basename(file, ".yaml");
|
|
5214
5214
|
if (fileName === "cookies" || fileName === "request") {
|
|
5215
5215
|
logger.debug(`[Config] 检测到 ${fileName} 配置变化,正在重载 Amagi Client...`);
|
|
5216
|
-
import("./amagiClient-
|
|
5216
|
+
import("./amagiClient-3JcmmG1l.js").then(({ reloadAmagiConfig }) => {
|
|
5217
5217
|
reloadAmagiConfig();
|
|
5218
5218
|
}).catch((error) => {
|
|
5219
5219
|
logger.error(`[Config] 重载 Amagi Client 失败: ${error}`);
|
|
@@ -5232,7 +5232,7 @@ var Cfg = class {
|
|
|
5232
5232
|
};
|
|
5233
5233
|
}
|
|
5234
5234
|
async All() {
|
|
5235
|
-
const { getDouyinDB, getBilibiliDB } = await import("./db-
|
|
5235
|
+
const { getDouyinDB, getBilibiliDB } = await import("./db-ChLhmmTR.js");
|
|
5236
5236
|
const douyinDB = await getDouyinDB();
|
|
5237
5237
|
const bilibiliDB = await getBilibiliDB();
|
|
5238
5238
|
const allConfig = {};
|
|
@@ -5274,7 +5274,7 @@ var Cfg = class {
|
|
|
5274
5274
|
fs.writeFileSync(path, yamlData.toString({ lineWidth: -1 }), "utf8");
|
|
5275
5275
|
}
|
|
5276
5276
|
async ModifyPro(name, config, type = "config") {
|
|
5277
|
-
const { getDouyinDB, getBilibiliDB } = await import("./db-
|
|
5277
|
+
const { getDouyinDB, getBilibiliDB } = await import("./db-ChLhmmTR.js");
|
|
5278
5278
|
const douyinDB = await getDouyinDB();
|
|
5279
5279
|
const bilibiliDB = await getBilibiliDB();
|
|
5280
5280
|
const filePath = type === "config" ? `${this.dirCfgPath}/${name}.yaml` : `${this.defCfgPath}/${name}.yaml`;
|
|
@@ -5379,7 +5379,7 @@ var Cfg = class {
|
|
|
5379
5379
|
}
|
|
5380
5380
|
async syncConfigToDatabase() {
|
|
5381
5381
|
try {
|
|
5382
|
-
const { getDouyinDB, getBilibiliDB } = await import("./db-
|
|
5382
|
+
const { getDouyinDB, getBilibiliDB } = await import("./db-ChLhmmTR.js");
|
|
5383
5383
|
const douyinDB = await getDouyinDB();
|
|
5384
5384
|
const bilibiliDB = await getBilibiliDB();
|
|
5385
5385
|
const pushCfg = this.getYaml("config", "pushlist");
|
|
@@ -7979,47 +7979,47 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
7979
7979
|
switch (baseComponent.id) {
|
|
7980
7980
|
case "comment": return createComponentConfig(baseComponent, {
|
|
7981
7981
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
7982
|
-
lazyComponent: () => import("./Comment-
|
|
7982
|
+
lazyComponent: () => import("./Comment-BdFIBFRM.js").then((module) => ({ default: module.DouyinComment }))
|
|
7983
7983
|
});
|
|
7984
7984
|
case "dynamic": return createComponentConfig(baseComponent, {
|
|
7985
7985
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
7986
|
-
lazyComponent: () => import("./Dynamic-
|
|
7986
|
+
lazyComponent: () => import("./Dynamic-BOIaYQ1r.js").then((module) => ({ default: module.DouyinDynamic }))
|
|
7987
7987
|
});
|
|
7988
7988
|
case "video-work": return createComponentConfig(baseComponent, {
|
|
7989
7989
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
7990
|
-
lazyComponent: () => import("./VideoWork-
|
|
7990
|
+
lazyComponent: () => import("./VideoWork-QmhlOA1B.js").then((module) => ({ default: module.DouyinVideoWork }))
|
|
7991
7991
|
});
|
|
7992
7992
|
case "image-work": return createComponentConfig(baseComponent, {
|
|
7993
7993
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
7994
|
-
lazyComponent: () => import("./ImageWork-
|
|
7994
|
+
lazyComponent: () => import("./ImageWork-4YoCDSWX.js").then((module) => ({ default: module.DouyinImageWork }))
|
|
7995
7995
|
});
|
|
7996
7996
|
case "article-work": return createComponentConfig(baseComponent, {
|
|
7997
7997
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
7998
|
-
lazyComponent: () => import("./ArticleWork-
|
|
7998
|
+
lazyComponent: () => import("./ArticleWork-CAvWDskr.js").then((module) => ({ default: module.DouyinArticleWork }))
|
|
7999
7999
|
});
|
|
8000
8000
|
case "favorite-list": return createComponentConfig(baseComponent, {
|
|
8001
8001
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8002
|
-
lazyComponent: () => import("./FavoriteList-
|
|
8002
|
+
lazyComponent: () => import("./FavoriteList-CkYhbG1o.js").then((module) => ({ default: module.DouyinFavoriteList }))
|
|
8003
8003
|
});
|
|
8004
8004
|
case "recommend-list": return createComponentConfig(baseComponent, {
|
|
8005
8005
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8006
|
-
lazyComponent: () => import("./RecommendList-
|
|
8006
|
+
lazyComponent: () => import("./RecommendList-DeWcGJuI.js").then((module) => ({ default: module.DouyinRecommendList }))
|
|
8007
8007
|
});
|
|
8008
8008
|
case "live": return createComponentConfig(baseComponent, {
|
|
8009
8009
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8010
|
-
lazyComponent: () => import("./Live-
|
|
8010
|
+
lazyComponent: () => import("./Live-C2UwsLm1.js").then((module) => ({ default: module.DouyinLive }))
|
|
8011
8011
|
});
|
|
8012
8012
|
case "musicinfo": return createComponentConfig(baseComponent, {
|
|
8013
8013
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8014
|
-
lazyComponent: () => import("./MusicInfo-
|
|
8014
|
+
lazyComponent: () => import("./MusicInfo-CKqAbk5s.js").then((module) => ({ default: module.DouyinMusicInfo }))
|
|
8015
8015
|
});
|
|
8016
|
-
case "user_profile": return createComponentConfig(baseComponent, { lazyComponent: () => import("./UserVideoList-
|
|
8016
|
+
case "user_profile": return createComponentConfig(baseComponent, { lazyComponent: () => import("./UserVideoList-CIO4qkQ2.js").then((module) => ({ default: module.DouyinUserVideoList })) });
|
|
8017
8017
|
case "userlist": return createComponentConfig(baseComponent, {
|
|
8018
8018
|
validateData: (data) => data && Array.isArray(data.renderOpt),
|
|
8019
|
-
lazyComponent: () => import("./UserList-
|
|
8019
|
+
lazyComponent: () => import("./UserList-BeknhQcy.js").then((module) => ({ default: module.default }))
|
|
8020
8020
|
});
|
|
8021
|
-
case "videoInfo": return createComponentConfig(baseComponent, { lazyComponent: () => import("./videoInfo-
|
|
8022
|
-
case "qrcodeImg": return createComponentConfig(baseComponent, { lazyComponent: () => import("./qrcodeImg-
|
|
8021
|
+
case "videoInfo": return createComponentConfig(baseComponent, { lazyComponent: () => import("./videoInfo-CpXjFzcf.js").then((module) => ({ default: module.DouyinVideoInfo })) });
|
|
8022
|
+
case "qrcodeImg": return createComponentConfig(baseComponent, { lazyComponent: () => import("./qrcodeImg-BFwudFuF.js").then((module) => ({ default: module.DouyinQrcodeImg })) });
|
|
8023
8023
|
default: return createComponentConfig(baseComponent);
|
|
8024
8024
|
}
|
|
8025
8025
|
});
|
|
@@ -8029,42 +8029,42 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
8029
8029
|
switch (baseComponent.id) {
|
|
8030
8030
|
case "comment": return createComponentConfig(baseComponent, {
|
|
8031
8031
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8032
|
-
lazyComponent: () => import("./Comment-
|
|
8032
|
+
lazyComponent: () => import("./Comment-C7xISu4_.js").then((module) => ({ default: module.BilibiliComment }))
|
|
8033
8033
|
});
|
|
8034
8034
|
case "userlist": return createComponentConfig(baseComponent, {
|
|
8035
8035
|
validateData: (data) => data && Array.isArray(data.renderOpt),
|
|
8036
|
-
lazyComponent: () => import("./UserList-
|
|
8036
|
+
lazyComponent: () => import("./UserList-ofJ0j0z9.js").then((module) => ({ default: module.default }))
|
|
8037
8037
|
});
|
|
8038
|
-
case "bangumi": return createComponentConfig(baseComponent, { lazyComponent: () => import("./bangumi-
|
|
8038
|
+
case "bangumi": return createComponentConfig(baseComponent, { lazyComponent: () => import("./bangumi-DwEnWLJ7.js").then((module) => ({ default: module.default })) });
|
|
8039
8039
|
case "dynamic/DYNAMIC_TYPE_DRAW": return createComponentConfig(baseComponent, {
|
|
8040
8040
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8041
|
-
lazyComponent: () => import("./DYNAMIC_TYPE_DRAW-
|
|
8041
|
+
lazyComponent: () => import("./DYNAMIC_TYPE_DRAW-Br819-dc.js").then((module) => ({ default: module.BilibiliDrawDynamic }))
|
|
8042
8042
|
});
|
|
8043
8043
|
case "dynamic/DYNAMIC_TYPE_WORD": return createComponentConfig(baseComponent, {
|
|
8044
8044
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8045
|
-
lazyComponent: () => import("./DYNAMIC_TYPE_WORD-
|
|
8045
|
+
lazyComponent: () => import("./DYNAMIC_TYPE_WORD-Cv08Qkom.js").then((module) => ({ default: module.BilibiliWordDynamic }))
|
|
8046
8046
|
});
|
|
8047
8047
|
case "dynamic/DYNAMIC_TYPE_AV": return createComponentConfig(baseComponent, {
|
|
8048
8048
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8049
|
-
lazyComponent: () => import("./DYNAMIC_TYPE_AV-
|
|
8049
|
+
lazyComponent: () => import("./DYNAMIC_TYPE_AV-CP3T0iWK.js").then((module) => ({ default: module.BilibiliVideoDynamic }))
|
|
8050
8050
|
});
|
|
8051
8051
|
case "dynamic/DYNAMIC_TYPE_FORWARD": return createComponentConfig(baseComponent, {
|
|
8052
8052
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8053
|
-
lazyComponent: () => import("./DYNAMIC_TYPE_FORWARD-
|
|
8053
|
+
lazyComponent: () => import("./DYNAMIC_TYPE_FORWARD-CIs4Hnf3.js").then((module) => ({ default: module.BilibiliForwardDynamic }))
|
|
8054
8054
|
});
|
|
8055
8055
|
case "dynamic/DYNAMIC_TYPE_LIVE_RCMD": return createComponentConfig(baseComponent, {
|
|
8056
8056
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8057
|
-
lazyComponent: () => import("./DYNAMIC_TYPE_LIVE_RCMD-
|
|
8057
|
+
lazyComponent: () => import("./DYNAMIC_TYPE_LIVE_RCMD-C-wYfS9-.js").then((module) => ({ default: module.BilibiliLiveDynamic }))
|
|
8058
8058
|
});
|
|
8059
8059
|
case "dynamic/DYNAMIC_TYPE_WORD": return createComponentConfig(baseComponent, { validateData: (data) => data && typeof data.share_url === "string" });
|
|
8060
|
-
case "dynamic/DYNAMIC_TYPE_ARTICLE": return createComponentConfig(baseComponent, { lazyComponent: () => import("./DYNAMIC_TYPE_ARTICLE-
|
|
8060
|
+
case "dynamic/DYNAMIC_TYPE_ARTICLE": return createComponentConfig(baseComponent, { lazyComponent: () => import("./DYNAMIC_TYPE_ARTICLE-CnEYoNYU.js").then((module) => ({ default: module.BilibiliArticleDynamic })) });
|
|
8061
8061
|
case "videoInfo": return createComponentConfig(baseComponent, {
|
|
8062
8062
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8063
|
-
lazyComponent: () => import("./videoInfo-
|
|
8063
|
+
lazyComponent: () => import("./videoInfo-i92C0Atv.js").then((module) => ({ default: module.BilibiliVideoInfo }))
|
|
8064
8064
|
});
|
|
8065
8065
|
case "qrcodeImg": return createComponentConfig(baseComponent, {
|
|
8066
8066
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8067
|
-
lazyComponent: () => import("./qrcodeImg-
|
|
8067
|
+
lazyComponent: () => import("./qrcodeImg-CWu66k8h.js").then((module) => ({ default: module.BilibiliQrcodeImg }))
|
|
8068
8068
|
});
|
|
8069
8069
|
default: return createComponentConfig(baseComponent);
|
|
8070
8070
|
}
|
|
@@ -8075,7 +8075,7 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
8075
8075
|
switch (baseComponent.id) {
|
|
8076
8076
|
case "comment": return createComponentConfig(baseComponent, {
|
|
8077
8077
|
validateData: (data) => data && typeof data.share_url === "string",
|
|
8078
|
-
lazyComponent: () => import("./Comment
|
|
8078
|
+
lazyComponent: () => import("./Comment-C6jcQZf_.js").then((module) => ({ default: module.KuaishouComment }))
|
|
8079
8079
|
});
|
|
8080
8080
|
default: return createComponentConfig(baseComponent);
|
|
8081
8081
|
}
|
|
@@ -8084,8 +8084,8 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
8084
8084
|
case PlatformType.XIAOHONGSHU:
|
|
8085
8085
|
platform.components = basePlatform.components.map((baseComponent) => {
|
|
8086
8086
|
switch (baseComponent.id) {
|
|
8087
|
-
case "noteInfo": return createComponentConfig(baseComponent, { lazyComponent: () => import("./noteInfo-
|
|
8088
|
-
case "comment": return createComponentConfig(baseComponent, { lazyComponent: () => import("./Comment-
|
|
8087
|
+
case "noteInfo": return createComponentConfig(baseComponent, { lazyComponent: () => import("./noteInfo-C0Tq3gmo.js").then((module) => ({ default: module.XiaohongshuNoteInfo })) });
|
|
8088
|
+
case "comment": return createComponentConfig(baseComponent, { lazyComponent: () => import("./Comment-B9VBhKOd.js").then((module) => ({ default: module.XiaohongshuComment })) });
|
|
8089
8089
|
default: return createComponentConfig(baseComponent);
|
|
8090
8090
|
}
|
|
8091
8091
|
});
|
|
@@ -8093,11 +8093,11 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
8093
8093
|
case PlatformType.OTHER:
|
|
8094
8094
|
platform.components = basePlatform.components.map((baseComponent) => {
|
|
8095
8095
|
switch (baseComponent.id) {
|
|
8096
|
-
case "help": return createComponentConfig(baseComponent, { lazyComponent: () => import("./Help-
|
|
8097
|
-
case "handlerError": return createComponentConfig(baseComponent, { lazyComponent: () => import("./handlerError-
|
|
8098
|
-
case "changelog": return createComponentConfig(baseComponent, { lazyComponent: () => import("./changelog-
|
|
8099
|
-
case "version_warning": return createComponentConfig(baseComponent, { lazyComponent: () => import("./VersionWarning-
|
|
8100
|
-
case "qrlogin": return createComponentConfig(baseComponent, { lazyComponent: () => import("./qrlogin-
|
|
8096
|
+
case "help": return createComponentConfig(baseComponent, { lazyComponent: () => import("./Help-Cgy6eaaY.js").then((module) => ({ default: module.default })) });
|
|
8097
|
+
case "handlerError": return createComponentConfig(baseComponent, { lazyComponent: () => import("./handlerError-DK3R--9k.js").then((module) => ({ default: module.handlerError })) });
|
|
8098
|
+
case "changelog": return createComponentConfig(baseComponent, { lazyComponent: () => import("./changelog-Ce85OwiN.js").then((module) => ({ default: module.Changelog })) });
|
|
8099
|
+
case "version_warning": return createComponentConfig(baseComponent, { lazyComponent: () => import("./VersionWarning-BBHORB8V.js").then((module) => ({ default: module.VersionWarning })) });
|
|
8100
|
+
case "qrlogin": return createComponentConfig(baseComponent, { lazyComponent: () => import("./qrlogin-CbLnI4DH.js").then((module) => ({ default: module.QrLogin })) });
|
|
8101
8101
|
default: return createComponentConfig(baseComponent);
|
|
8102
8102
|
}
|
|
8103
8103
|
});
|
|
@@ -8105,8 +8105,8 @@ var componentConfigs = baseComponentConfigs.map((basePlatform) => {
|
|
|
8105
8105
|
case PlatformType.STATISTICS:
|
|
8106
8106
|
platform.components = basePlatform.components.map((baseComponent) => {
|
|
8107
8107
|
switch (baseComponent.id) {
|
|
8108
|
-
case "group": return createComponentConfig(baseComponent, { lazyComponent: () => import("./GroupStatistics-
|
|
8109
|
-
case "global": return createComponentConfig(baseComponent, { lazyComponent: () => import("./GlobalStatistics-
|
|
8108
|
+
case "group": return createComponentConfig(baseComponent, { lazyComponent: () => import("./GroupStatistics-B6uJ4Z4n.js").then((module) => ({ default: module.GroupStatistics })) });
|
|
8109
|
+
case "global": return createComponentConfig(baseComponent, { lazyComponent: () => import("./GlobalStatistics-rPHCGgxu.js").then((module) => ({ default: module.GlobalStatistics })) });
|
|
8110
8110
|
default: return createComponentConfig(baseComponent);
|
|
8111
8111
|
}
|
|
8112
8112
|
});
|
|
@@ -8830,9 +8830,11 @@ var Render = async (event, path$1, data) => {
|
|
|
8830
8830
|
const imageBuffer = Buffer.from(image, "base64");
|
|
8831
8831
|
const finalImageBuffer = embedWatermark(imageBuffer, JSON.stringify({
|
|
8832
8832
|
a: Date.now(),
|
|
8833
|
-
b: `Generated by karin-plugin-kkk v${Root.pluginVersion}, with source code open-sourced under the
|
|
8833
|
+
b: `Generated by karin-plugin-kkk v${Root.pluginVersion}, with source code open-sourced under the GPL-3.0 license`,
|
|
8834
8834
|
c: `Sent by ${event.bot.account.selfId}|${event.bot.account.name}`
|
|
8835
8835
|
})) ?? imageBuffer;
|
|
8836
|
+
const finalImageSizeMb = finalImageBuffer.length / (1024 * 1024);
|
|
8837
|
+
logger.debug(`[Render] 图片处理完成,准备入队发送,大小: ${logger.green(`${finalImageSizeMb.toFixed(3)} MB`)}`);
|
|
8836
8838
|
ret.push(segment.image("base64://" + finalImageBuffer.toString("base64")));
|
|
8837
8839
|
}
|
|
8838
8840
|
return ret;
|
|
@@ -19516,9 +19518,10 @@ var getRemoteBuildMetadata = async (version) => {
|
|
|
19516
19518
|
return null;
|
|
19517
19519
|
}
|
|
19518
19520
|
};
|
|
19519
|
-
var getChangelogImage = async (
|
|
19521
|
+
var getChangelogImage = async (ctx, props) => {
|
|
19520
19522
|
let changelog = "";
|
|
19521
19523
|
let buildTime;
|
|
19524
|
+
const event = "bot" in ctx ? ctx : { bot: ctx };
|
|
19522
19525
|
if (props.Tip || props.isRemote) {
|
|
19523
19526
|
const requests = [
|
|
19524
19527
|
`https://jsd.onmicrosoft.cn/npm/${Root.pluginName}@${props.remoteVersion}/CHANGELOG.md`,
|
|
@@ -19584,9 +19587,8 @@ var getChangelogImage = async (event, props) => {
|
|
|
19584
19587
|
};
|
|
19585
19588
|
var UPDATE_LOCK_KEY = "kkk:update:lock";
|
|
19586
19589
|
var UPDATE_MSGID_KEY = "kkk:update:msgId";
|
|
19587
|
-
var Handler = async (
|
|
19590
|
+
var Handler = async () => {
|
|
19588
19591
|
if (process.env.NODE_ENV === "development") return true;
|
|
19589
|
-
logger.trace(e);
|
|
19590
19592
|
let upd;
|
|
19591
19593
|
try {
|
|
19592
19594
|
upd = await checkPkgUpdate(Root.pluginName, { compare: "semver" });
|
|
@@ -19605,21 +19607,46 @@ var Handler = async (e) => {
|
|
|
19605
19607
|
try {
|
|
19606
19608
|
await db.set(UPDATE_LOCK_KEY, upd.remote);
|
|
19607
19609
|
} catch {}
|
|
19608
|
-
const
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
let master = list[0];
|
|
19615
|
-
if (master === "console") master = list[1];
|
|
19616
|
-
const botList = karin$1.getAllBotList();
|
|
19617
|
-
if (ChangeLogImg) {
|
|
19618
|
-
const msgResult = await karin$1.sendMaster(botList[0].bot.account.name === "console" ? botList[1].bot.account.selfId : botList[0].bot.account.selfId, master, [segment.text("karin-plugin-kkk 有新的更新!"), ...ChangeLogImg]);
|
|
19610
|
+
const masters = config.master().filter((id) => id !== "console");
|
|
19611
|
+
if (masters.length === 0) return true;
|
|
19612
|
+
const botItems = karin$1.getAllBotList().filter((b) => b.bot.account.name !== "console");
|
|
19613
|
+
if (botItems.length === 0) return true;
|
|
19614
|
+
const friendsMap = /* @__PURE__ */ new Map();
|
|
19615
|
+
await Promise.all(botItems.map(async (item) => {
|
|
19619
19616
|
try {
|
|
19620
|
-
await
|
|
19621
|
-
|
|
19622
|
-
|
|
19617
|
+
const list = await item.bot.getFriendList();
|
|
19618
|
+
friendsMap.set(item.bot.account.selfId, list || []);
|
|
19619
|
+
} catch {
|
|
19620
|
+
friendsMap.set(item.bot.account.selfId, []);
|
|
19621
|
+
}
|
|
19622
|
+
}));
|
|
19623
|
+
const masterToBot = /* @__PURE__ */ new Map();
|
|
19624
|
+
for (const owner of masters) {
|
|
19625
|
+
const matched = botItems.find((it) => (friendsMap.get(it.bot.account.selfId) || []).some((f) => f.userId === owner));
|
|
19626
|
+
if (matched) masterToBot.set(owner, matched.bot);
|
|
19627
|
+
}
|
|
19628
|
+
const botToImage = /* @__PURE__ */ new Map();
|
|
19629
|
+
for (const item of botItems) {
|
|
19630
|
+
if (!Array.from(masterToBot.entries()).some(([, b]) => b.account.selfId === item.bot.account.selfId)) continue;
|
|
19631
|
+
const img = await getChangelogImage({ bot: item.bot }, {
|
|
19632
|
+
localVersion: Root.pluginVersion,
|
|
19633
|
+
remoteVersion: upd.remote,
|
|
19634
|
+
Tip: true
|
|
19635
|
+
});
|
|
19636
|
+
if (img && img.length > 0) botToImage.set(item.bot.account.selfId, [segment.text("karin-plugin-kkk 有新的更新!"), ...img]);
|
|
19637
|
+
}
|
|
19638
|
+
let storedMsgId;
|
|
19639
|
+
for (const owner of masters) {
|
|
19640
|
+
const bot = masterToBot.get(owner);
|
|
19641
|
+
if (!bot) continue;
|
|
19642
|
+
const elements = botToImage.get(bot.account.selfId);
|
|
19643
|
+
if (!elements) continue;
|
|
19644
|
+
const msg = await karin$1.sendMaster(bot.account.selfId, owner, elements);
|
|
19645
|
+
if (!storedMsgId && msg?.messageId) storedMsgId = msg.messageId;
|
|
19646
|
+
}
|
|
19647
|
+
if (storedMsgId) try {
|
|
19648
|
+
await db.set(UPDATE_MSGID_KEY, storedMsgId);
|
|
19649
|
+
} catch {}
|
|
19623
19650
|
return true;
|
|
19624
19651
|
};
|
|
19625
19652
|
var handleUpdateHook = wrapWithErrorHandler(async (e) => {
|
|
@@ -19677,7 +19704,7 @@ var handleKkkUpdate = wrapWithErrorHandler(async (e) => {
|
|
|
19677
19704
|
} else e.reply(`${Root.pluginName} 更新失败: ${result.data ?? "更新执行失败"}`);
|
|
19678
19705
|
}, { businessName: "KKK更新" });
|
|
19679
19706
|
var kkkUpdateCommand = karin$1.command(/^#?kkk更新$/, handleKkkUpdate, { name: "kkk-更新" });
|
|
19680
|
-
var update = karin$1.task("kkk-更新检测", "*/
|
|
19707
|
+
var update = karin$1.task("kkk-更新检测", "*/1 * * * *", Handler, {
|
|
19681
19708
|
name: "kkk-更新检测",
|
|
19682
19709
|
log: false
|
|
19683
19710
|
});
|
|
@@ -22872,7 +22899,7 @@ app$1.get("/video/:filename", getVideoRouter);
|
|
|
22872
22899
|
app$1.get("/video/:filename/events", videoPreviewEventsRouter);
|
|
22873
22900
|
app$1.use("/v1", apiRouter);
|
|
22874
22901
|
app.use("/api/kkk", app$1);
|
|
22875
|
-
var requireVersion = "1.
|
|
22902
|
+
var requireVersion = "1.15.0";
|
|
22876
22903
|
if (process.env.NODE_ENV !== "development" && isSemverGreater(requireVersion, Root.karinVersion)) {
|
|
22877
22904
|
const msg = `[karin-plugin-kkk] 插件构建时的 karin 版本 (${requireVersion}) 高于当前运行版本 (${Root.karinVersion}),可能会出现兼容性问题!`;
|
|
22878
22905
|
logger.warn(msg);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bt as renderVideoPreviewPage, st as template_default, yt as reactServerRender } from "./main-
|
|
1
|
+
import { bt as renderVideoPreviewPage, st as template_default, yt as reactServerRender } from "./main-dLOs0WSH.js";
|
|
2
2
|
import "./vendor-DFuezFxA.js";
|
|
3
3
|
export { template_default as default, reactServerRender, renderVideoPreviewPage };
|
package/lib/index.js
CHANGED
package/lib/root.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dt as Root } from "./core_chunk/main-
|
|
1
|
+
import { Dt as Root } from "./core_chunk/main-dLOs0WSH.js";
|
|
2
2
|
export { Root };
|
package/lib/web.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karin-plugin-kkk",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.5",
|
|
4
4
|
"description": "Karin 的「抖音」「B 站」视频解析/动态推送插件",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"karin-plugin",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ikenxuan/watermark": "^1.0.
|
|
46
|
+
"@ikenxuan/watermark": "^1.0.6",
|
|
47
47
|
"fingerprint-injector": "^2.1.81"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|