karin-plugin-kkk 2.32.0 → 2.32.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/CHANGELOG.md +21 -0
- package/lib/apps/admin.js +1 -1
- package/lib/apps/help.js +1 -1
- package/lib/apps/push.js +2 -2
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/amagi.js +1 -1
- package/lib/core_chunk/amagiClient.js +1 -1
- package/lib/core_chunk/db.js +1 -1
- package/lib/core_chunk/main.js +30 -117
- package/lib/core_chunk/richtext.js +1 -1
- package/lib/core_chunk/template.js +1 -1
- package/lib/core_chunk/vendor.js +4574 -4689
- package/lib/karin-plugin-kkk.css +1843 -1247
- package/lib/root.js +1 -1
- package/lib/web.config.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [2.32.2](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.32.1...v2.32.2) (2026-05-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 错误修复
|
|
9
|
+
|
|
10
|
+
* **bilibili:** 修复推送项中的装饰卡片字段名称 ([cfd0ee3](https://github.com/ikenxuan/karin-plugin-kkk/commit/cfd0ee3eabfc26264898fb500d71931f529d7592))
|
|
11
|
+
* 添加一个bug ([35d95c2](https://github.com/ikenxuan/karin-plugin-kkk/commit/35d95c2a011d4f31b6c9b88937242f3cf15538f1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### 📦 依赖更新
|
|
15
|
+
|
|
16
|
+
* update ([38acf3d](https://github.com/ikenxuan/karin-plugin-kkk/commit/38acf3d86338b6b220ceb89e7cb63500844811fe))
|
|
17
|
+
* update ([#313](https://github.com/ikenxuan/karin-plugin-kkk/issues/313)) ([23c7b7d](https://github.com/ikenxuan/karin-plugin-kkk/commit/23c7b7d53975e5cd6b11ecc41acb0cc21a82d48d))
|
|
18
|
+
|
|
19
|
+
## [2.32.1](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.32.0...v2.32.1) (2026-05-27)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### 🐛 错误修复
|
|
23
|
+
|
|
24
|
+
* **bilibili:** 推送爆了 ([cd87724](https://github.com/ikenxuan/karin-plugin-kkk/commit/cd8772438ed7c3a2c558f9a1b4455079e4a58f2c))
|
|
25
|
+
|
|
5
26
|
## [2.32.0](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.31.2...v2.32.0) (2026-05-27)
|
|
6
27
|
|
|
7
28
|
|
package/lib/apps/admin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as task, E as removeOldFiles, O as testWrapWithErrorHandler, T as dylogin, w as biLogin } from "../core_chunk/main.js";
|
|
2
2
|
export { biLogin, dylogin, removeOldFiles, task, testWrapWithErrorHandler };
|
package/lib/apps/help.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as version, S as help } from "../core_chunk/main.js";
|
|
2
2
|
export { help, version };
|
package/lib/apps/push.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { bilibiliPush, bilibiliPushList, changeBotID, douyinPush, douyinPushList, forcePush, globalIgnore, setbiliPush, setdyPush
|
|
1
|
+
import { _ as douyinPushList, b as setbiliPush, g as douyinPush, h as changeBotID, m as bilibiliPushList, p as bilibiliPush, v as forcePush, x as setdyPush, y as globalIgnore } from "../core_chunk/main.js";
|
|
2
|
+
export { bilibiliPush, bilibiliPushList, changeBotID, douyinPush, douyinPushList, forcePush, globalIgnore, setbiliPush, setdyPush };
|
package/lib/build-metadata.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.32.
|
|
3
|
-
"buildTime": "2026-05-
|
|
4
|
-
"buildTimestamp":
|
|
2
|
+
"version": "2.32.2",
|
|
3
|
+
"buildTime": "2026-05-29T02:16:39.158Z",
|
|
4
|
+
"buildTimestamp": 1780020999158,
|
|
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": "a1dbea26be9d1e5cc3cf4e9c076867a56e887d25",
|
|
9
|
+
"shortCommitHash": "a1dbea26"
|
|
10
10
|
}
|
package/lib/core_chunk/amagi.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as KuaishouCommentParamsSchema, $r as emitLogError, $t as createAmagiClient, An as isNetworkErrorResult, Ar as BilibiliColumnInfoParamsSchema, At as KuaishouMethodMapping, Bn as douyinSign, Br as BilibiliQrcodeStatusParamsSchema, Bt as DouyinMethodToFetcher, Cn as httpLogger, Cr as BilibiliArticleCardParamsSchema, Ct as amagi, Dn as fetchData, Dr as BilibiliBangumiInfoParamsSchema, Dt as DouyinApiRoutes, En as logger, Er as BilibiliAv2BvParamsSchema, Et as BilibiliMethodMapping, Fn as kuaishouSign, Fr as BilibiliEmojiParamsSchema, Ft as BilibiliFetcherMethods, Gn as validateBilibiliParams, Gr as BilibiliVideoParamsSchema, Gt as XiaohongshuFetcherMethods, Hn as createBoundBilibiliFetcher, Hr as BilibiliValidateCaptchaParamsSchema, Ht as KuaishouInternalMethods, In as kuaishouApiUrls, Ir as BilibiliLiveParamsSchema, It as BilibiliInternalMethods, Jn as validateXiaohongshuParams, Jr as emitApiSuccess, Jt as toFetcherMethod, Kn as validateDouyinParams, Kr as amagiEvents, Kt as XiaohongshuInternalMethods, Ln as douyinFetcher, Lr as BilibiliLoginParamsSchema, Lt as BilibiliMethodToFetcher, Mn as xiaohongshuFetcher, Mr as BilibiliCommentReplyParamsSchema, Mt as XiaohongshuMethodMapping, Nn as createBoundKuaishouFetcher, Nr as BilibiliDanmakuParamsSchema, Nt as getApiRoute, On as fetchResponse, Or as BilibiliBangumiStreamParamsSchema, Ot as DouyinMethodMapping, Pn as kuaishouFetcher, Pr as BilibiliDynamicParamsSchema, Pt as getEnglishMethodName, Qn as xiaohongshuSign, Qr as emitLogDebug, Qt as CommentType, Rn as createBoundDouyinFetcher, Rr as BilibiliMethodRoutes, Rt as DouyinFetcherMethods, Sn as qtparam, Sr as BilibiliApplyCaptchaParamsSchema, St as CreateApp, Tn as logMiddleware, Tr as BilibiliArticleParamsSchema, Tt as BilibiliApiRoutes, Un as createErrorResponse, Ur as BilibiliValidationSchemas, Ut as KuaishouMethodToFetcher, Vn as bilibiliFetcher, Vr as BilibiliUserParamsSchema, Vt as KuaishouFetcherMethods, Wn as createSuccessResponse, Wr as BilibiliVideoDownloadParamsSchema, Wt as MethodMaps, Xn as XiaohongshuValidationSchemas, Xr as emitHttpResponse, Xt as AdditionalType, Yn as XiaohongshuMethodRoutes, Yr as emitHttpRequest, Yt as DynamicType, Zn as xiaohongshuApiUrls, Zr as emitLog, Zt as MajorType, _n as bilibiliErrorCodeMap, _r as DouyinSearchParamsSchema, ai as bilibili, an as createKuaishouRoutes, ar as KuaishouValidationSchemas, bn as av2bv, br as DouyinValidationSchemas, ci as getBilibiliData, cn as douyinUtils, cr as DouyinCommentReplyParamsSchema, dn as douyin, dr as DouyinEmojiProParamsSchema, ei as emitLogInfo, en as xiaohongshuUtils, er as KuaishouEmojiParamsSchema, fn as bilibiliUtils, fr as DouyinHotWordsParamsSchema, gn as handleError, gr as DouyinQrcodeParamsSchema, hn as ValidationError, hr as DouyinMusicParamsSchema, ii as emitNetworkRetry, in as kuaishouUtils, ir as KuaishouUserWorkListParamsSchema, jn as createBoundXiaohongshuFetcher, jr as BilibiliCommentParamsSchema, jt as XiaohongshuApiRoutes, kn as getHeadersAndData, kr as BilibiliBv2AvParamsSchema, kt as KuaishouApiRoutes, li as getDouyinData, ln as createDouyinRoutes, lr as DouyinDanmakuParamsSchema, mn as ApiError, mr as DouyinMethodRoutes, ni as emitLogWarn, nn as createBoundXiaohongshuApi, nr as KuaishouMethodRoutes, oi as createBoundBilibiliApi, on as createBoundKuaishouApi, or as KuaishouVideoParamsSchema, pn as createBilibiliRoutes, pr as DouyinLiveRoomParamsSchema, qn as validateKuaishouParams, qr as emitApiError, qt as XiaohongshuMethodToFetcher, ri as emitNetworkError, rn as xiaohongshu, rr as KuaishouUserProfileParamsSchema, si as bilibiliApiUrls, sn as kuaishou, sr as DouyinCommentParamsSchema, ti as emitLogMark, tn as createXiaohongshuRoutes, tr as KuaishouLiveRoomInfoParamsSchema, ui as getKuaishouData, un as createBoundDouyinApi, ur as DouyinEmojiListParamsSchema, vn as wbi_sign, vr as DouyinUserListParamsSchema, wn as initLogger, wr as BilibiliArticleInfoParamsSchema, wt as amagiClient, xn as bv2av, xr as DouyinWorkParamsSchema, yn as parseDmSegMobileReply, yr as DouyinUserParamsSchema, zn as douyinApiUrls, zr as BilibiliQrcodeParamsSchema, zt as DouyinInternalMethods } from "./main.js";
|
|
2
2
|
export { AdditionalType, ApiError, BilibiliApiRoutes, BilibiliApplyCaptchaParamsSchema, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, BilibiliArticleParamsSchema, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, BilibiliCommentReplyParamsSchema, BilibiliDanmakuParamsSchema, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliFetcherMethods, BilibiliInternalMethods, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliMethodMapping, BilibiliMethodRoutes, BilibiliMethodToFetcher, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliUserParamsSchema, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, CommentType, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinDanmakuParamsSchema, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethods, DouyinLiveRoomParamsSchema, DouyinMethodMapping, DouyinMethodRoutes, DouyinMethodToFetcher, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinSearchParamsSchema, DouyinUserListParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas, DouyinWorkParamsSchema, DynamicType, KuaishouApiRoutes, KuaishouCommentParamsSchema, KuaishouEmojiParamsSchema, KuaishouFetcherMethods, KuaishouInternalMethods, KuaishouLiveRoomInfoParamsSchema, KuaishouMethodMapping, KuaishouMethodRoutes, KuaishouMethodToFetcher, KuaishouUserProfileParamsSchema, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, MajorType, MethodMaps, ValidationError, XiaohongshuApiRoutes, XiaohongshuFetcherMethods, XiaohongshuInternalMethods, XiaohongshuMethodMapping, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bt as reloadAmagiConfig } from "./main.js";
|
|
2
2
|
export { reloadAmagiConfig };
|
package/lib/core_chunk/db.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as getDouyinDB, P as getBilibiliDB } from "./main.js";
|
|
2
2
|
export { getBilibiliDB, getDouyinDB };
|
package/lib/core_chunk/main.js
CHANGED
|
@@ -37556,7 +37556,7 @@ var Bilibilipush = class extends Base {
|
|
|
37556
37556
|
user_shortid: data[dynamicId].host_mid,
|
|
37557
37557
|
total_favorited: Count(userINFO.data.data.like_num),
|
|
37558
37558
|
following_count: Count(userINFO.data.data.card.attention),
|
|
37559
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.
|
|
37559
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.decorate_card),
|
|
37560
37560
|
render_time: TimeFormatter.now(),
|
|
37561
37561
|
imageLayout: Config.bilibili.imageLayout,
|
|
37562
37562
|
additional: parseAdditionalCard(data[dynamicId].Dynamic_Data.modules.module_dynamic.additional),
|
|
@@ -37594,7 +37594,7 @@ var Bilibilipush = class extends Base {
|
|
|
37594
37594
|
user_shortid: data[dynamicId].host_mid,
|
|
37595
37595
|
total_favorited: Count(userINFO.data.data.like_num),
|
|
37596
37596
|
following_count: Count(userINFO.data.data.card.attention),
|
|
37597
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.
|
|
37597
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.decorate_card),
|
|
37598
37598
|
render_time: TimeFormatter.now(),
|
|
37599
37599
|
additional: parseAdditionalCard(data[dynamicId].Dynamic_Data.modules.module_dynamic.additional),
|
|
37600
37600
|
dynamicTYPE: "纯文动态推送",
|
|
@@ -37709,29 +37709,33 @@ var Bilibilipush = class extends Base {
|
|
|
37709
37709
|
desc.text = desc.text ? `${name}\n\n${desc.text}` : name;
|
|
37710
37710
|
}
|
|
37711
37711
|
const text = buildBilibiliDynamicRichText(data[dynamicId].Dynamic_Data.modules.module_dynamic.desc.text, data[dynamicId].Dynamic_Data.modules.module_dynamic.desc.rich_text_nodes);
|
|
37712
|
-
let param = {};
|
|
37713
37712
|
/** 富文本节点:查看图片 */
|
|
37714
37713
|
const imgList = [];
|
|
37715
37714
|
if (data[dynamicId].Dynamic_Data.modules.module_dynamic.desc) {
|
|
37716
37715
|
for (const richTxtItem of data[dynamicId].Dynamic_Data.modules.module_dynamic.desc.rich_text_nodes) if (richTxtItem.type === "RICH_TEXT_NODE_TYPE_VIEW_PICTURE") for (const pic of richTxtItem.pics) imgList.push(pic.src);
|
|
37717
37716
|
}
|
|
37717
|
+
let original_content = {};
|
|
37718
37718
|
switch (data[dynamicId].Dynamic_Data.orig.type) {
|
|
37719
|
-
case DynamicType.AV:
|
|
37720
|
-
|
|
37719
|
+
case DynamicType.AV: {
|
|
37720
|
+
const desc = data[dynamicId].Dynamic_Data.orig.modules.module_dynamic?.desc || {
|
|
37721
|
+
text: "",
|
|
37722
|
+
rich_text_nodes: []
|
|
37723
|
+
};
|
|
37724
|
+
original_content = { DYNAMIC_TYPE_AV: {
|
|
37721
37725
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37722
|
-
pub_action: data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_action,
|
|
37723
37726
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37724
37727
|
duration_text: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.duration_text,
|
|
37728
|
+
text: buildBilibiliDynamicRichText(desc.text, desc.rich_text_nodes),
|
|
37725
37729
|
title: buildBilibiliDynamicRichText(data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.title ?? "", []),
|
|
37726
37730
|
danmaku: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.stat.danmaku,
|
|
37727
|
-
view: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.stat.view,
|
|
37728
37731
|
play: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.stat.play,
|
|
37729
37732
|
cover: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.cover,
|
|
37730
37733
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37731
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.
|
|
37734
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decorate_card),
|
|
37732
37735
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37733
|
-
};
|
|
37736
|
+
} };
|
|
37734
37737
|
break;
|
|
37738
|
+
}
|
|
37735
37739
|
case DynamicType.DRAW: {
|
|
37736
37740
|
const origMd = data[dynamicId].Dynamic_Data.orig.modules.module_dynamic;
|
|
37737
37741
|
if (origMd.topic) {
|
|
@@ -37750,16 +37754,16 @@ var Bilibilipush = class extends Base {
|
|
|
37750
37754
|
summary.text = summary.text ? `${name}\n${summary.text}` : name;
|
|
37751
37755
|
}
|
|
37752
37756
|
}
|
|
37753
|
-
|
|
37754
|
-
title: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major?.opus?.title ??
|
|
37757
|
+
original_content = { DYNAMIC_TYPE_DRAW: {
|
|
37758
|
+
title: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major?.opus?.title ?? void 0,
|
|
37755
37759
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37756
37760
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37757
37761
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37758
37762
|
text: buildBilibiliDynamicRichText(data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.opus.summary.text, data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.opus.summary.rich_text_nodes),
|
|
37759
37763
|
image_url: Object.values(data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.opus.pics).filter((item) => typeof item?.url === "string").map((item) => ({ image_src: item.url })),
|
|
37760
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.
|
|
37764
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decorate_card),
|
|
37761
37765
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37762
|
-
};
|
|
37766
|
+
} };
|
|
37763
37767
|
break;
|
|
37764
37768
|
}
|
|
37765
37769
|
case DynamicType.WORD: {
|
|
@@ -37778,30 +37782,30 @@ var Bilibilipush = class extends Base {
|
|
|
37778
37782
|
summary.text = summary.text ? `${name}\n${summary.text}` : name;
|
|
37779
37783
|
}
|
|
37780
37784
|
}
|
|
37781
|
-
|
|
37785
|
+
original_content = { DYNAMIC_TYPE_WORD: {
|
|
37782
37786
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37783
37787
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37784
37788
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37785
37789
|
text: buildBilibiliDynamicRichText(data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.opus.summary.text, data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.opus.summary.rich_text_nodes),
|
|
37786
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.
|
|
37790
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decorate_card),
|
|
37787
37791
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37788
|
-
};
|
|
37792
|
+
} };
|
|
37789
37793
|
break;
|
|
37790
37794
|
}
|
|
37791
37795
|
case DynamicType.LIVE_RCMD: {
|
|
37792
37796
|
const liveData = JSON.parse(data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.live_rcmd.content);
|
|
37793
|
-
|
|
37797
|
+
original_content = { DYNAMIC_TYPE_LIVE_RCMD: {
|
|
37794
37798
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37795
37799
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37796
37800
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37797
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.
|
|
37801
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decorate_card),
|
|
37798
37802
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image,
|
|
37799
37803
|
cover: liveData.live_play_info.cover,
|
|
37800
37804
|
text_large: liveData.live_play_info.watched_show.text_large,
|
|
37801
37805
|
area_name: liveData.live_play_info.area_name,
|
|
37802
37806
|
title: buildBilibiliDynamicRichText(liveData.live_play_info.title, []),
|
|
37803
37807
|
online: liveData.live_play_info.online
|
|
37804
|
-
};
|
|
37808
|
+
} };
|
|
37805
37809
|
break;
|
|
37806
37810
|
}
|
|
37807
37811
|
default: {
|
|
@@ -37825,9 +37829,9 @@ var Bilibilipush = class extends Base {
|
|
|
37825
37829
|
total_favorited: Count(userINFO.data.data.like_num),
|
|
37826
37830
|
following_count: Count(userINFO.data.data.card.attention),
|
|
37827
37831
|
dynamicTYPE: "转发动态推送",
|
|
37828
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.
|
|
37832
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.decorate_card),
|
|
37829
37833
|
render_time: TimeFormatter.now(),
|
|
37830
|
-
original_content
|
|
37834
|
+
original_content,
|
|
37831
37835
|
imgList: imgList.length > 0 ? imgList : null,
|
|
37832
37836
|
dynamic_id: dynamicId
|
|
37833
37837
|
}, { skipWatermark: true });
|
|
@@ -42698,92 +42702,6 @@ var handleChangeBotID = wrapWithErrorHandler(async (e) => {
|
|
|
42698
42702
|
await e.reply("推送机器人已修改为" + newBotId);
|
|
42699
42703
|
return true;
|
|
42700
42704
|
}, { businessName: "设置推送机器人" });
|
|
42701
|
-
var handleTestDouyinPush = wrapWithErrorHandler(async (e) => {
|
|
42702
|
-
const iddata = await getDouyinID(e, String(e.msg.match(/(http|https):\/\/.*\.(douyin|iesdouyin)\.com\/[^ ]+/g)));
|
|
42703
|
-
const workInfo = await douyinFetcher.parseWork({
|
|
42704
|
-
aweme_id: iddata.aweme_id,
|
|
42705
|
-
typeMode: "strict"
|
|
42706
|
-
});
|
|
42707
|
-
const userProfile = await douyinFetcher.fetchUserProfile({
|
|
42708
|
-
sec_uid: workInfo.data.aweme_detail.author.sec_uid,
|
|
42709
|
-
typeMode: "strict"
|
|
42710
|
-
});
|
|
42711
|
-
const realUrl = Config.douyin.push.shareType === "web" && await new Network({
|
|
42712
|
-
url: workInfo.data.aweme_detail.share_url,
|
|
42713
|
-
headers: {
|
|
42714
|
-
"User-Agent": "Apifox/1.0.0 (https://apifox.com)",
|
|
42715
|
-
Accept: "*/*",
|
|
42716
|
-
"Accept-Encoding": "gzip, deflate, br",
|
|
42717
|
-
Connection: "keep-alive"
|
|
42718
|
-
}
|
|
42719
|
-
}).getLocation();
|
|
42720
|
-
const workTypeInfo = getWorkTypeInfo(workInfo.data.aweme_detail);
|
|
42721
|
-
const coverUrl = getWorkCoverUrl(workTypeInfo, workInfo.data.aweme_detail);
|
|
42722
|
-
if (workTypeInfo.isArticle) {
|
|
42723
|
-
const content = JSON.parse(workInfo.data.aweme_detail.article_info.article_content);
|
|
42724
|
-
const fe_data = JSON.parse(workInfo.data.aweme_detail.article_info.fe_data);
|
|
42725
|
-
const img = await Render(e, "douyin/article-work", {
|
|
42726
|
-
title: workInfo.data.aweme_detail.article_info.article_title,
|
|
42727
|
-
markdown: content.markdown,
|
|
42728
|
-
images: fe_data.image_list || [],
|
|
42729
|
-
read_time: fe_data.read_time || 0,
|
|
42730
|
-
dianzan: Common.count(workInfo.data.aweme_detail.statistics.digg_count),
|
|
42731
|
-
pinglun: Common.count(workInfo.data.aweme_detail.statistics.comment_count),
|
|
42732
|
-
shouchang: Common.count(workInfo.data.aweme_detail.statistics.collect_count),
|
|
42733
|
-
share: Common.count(workInfo.data.aweme_detail.statistics.share_count),
|
|
42734
|
-
create_time: format(fromUnixTime(workInfo.data.aweme_detail.create_time), "yyyy-MM-dd HH:mm"),
|
|
42735
|
-
avater_url: "https://p3-pc.douyinpic.com/aweme/1080x1080/" + userProfile.data.user.avatar_larger.uri,
|
|
42736
|
-
username: workInfo.data.aweme_detail.author.nickname,
|
|
42737
|
-
抖音号: userProfile.data.user.unique_id === "" ? userProfile.data.user.short_id : userProfile.data.user.unique_id,
|
|
42738
|
-
获赞: Common.count(userProfile.data.user.total_favorited),
|
|
42739
|
-
关注: Common.count(userProfile.data.user.following_count),
|
|
42740
|
-
粉丝: Common.count(userProfile.data.user.follower_count),
|
|
42741
|
-
share_url: workInfo.data.aweme_detail.share_url,
|
|
42742
|
-
useDarkTheme: false
|
|
42743
|
-
});
|
|
42744
|
-
e.reply(img);
|
|
42745
|
-
return true;
|
|
42746
|
-
}
|
|
42747
|
-
const img = await Render(e, workTypeInfo.templatePath, {
|
|
42748
|
-
image_url: coverUrl,
|
|
42749
|
-
desc: workInfo.data.aweme_detail.desc,
|
|
42750
|
-
dianzan: Common.count(workInfo.data.aweme_detail.statistics.digg_count),
|
|
42751
|
-
pinglun: Common.count(workInfo.data.aweme_detail.statistics.comment_count),
|
|
42752
|
-
share: Common.count(workInfo.data.aweme_detail.statistics.share_count),
|
|
42753
|
-
shouchang: Common.count(workInfo.data.aweme_detail.statistics.collect_count),
|
|
42754
|
-
create_time: format(fromUnixTime(workInfo.data.aweme_detail.create_time), "yyyy-MM-dd HH:mm"),
|
|
42755
|
-
avater_url: "https://p3-pc.douyinpic.com/aweme/1080x1080/" + userProfile.data.user.avatar_larger.uri,
|
|
42756
|
-
share_url: Config.douyin.push.shareType === "web" ? realUrl : `https://aweme.snssdk.com/aweme/v1/play/?video_id=${workInfo.data.aweme_detail.video.play_addr.uri}&ratio=1080p&line=0`,
|
|
42757
|
-
username: workInfo.data.aweme_detail.author.nickname,
|
|
42758
|
-
抖音号: userProfile.data.user.unique_id === "" ? userProfile.data.user.short_id : userProfile.data.user.unique_id,
|
|
42759
|
-
粉丝: Common.count(userProfile.data.user.follower_count),
|
|
42760
|
-
获赞: Common.count(userProfile.data.user.total_favorited),
|
|
42761
|
-
关注: Common.count(userProfile.data.user.following_count),
|
|
42762
|
-
cooperation_info: (() => {
|
|
42763
|
-
const raw = workInfo.data.aweme_detail.cooperation_info;
|
|
42764
|
-
if (!raw) return void 0;
|
|
42765
|
-
const rawCreators = Array.isArray(raw.co_creators) ? raw.co_creators : [];
|
|
42766
|
-
const author = workInfo.data.aweme_detail.author;
|
|
42767
|
-
const authorUid = author?.uid;
|
|
42768
|
-
const authorSecUid = author?.sec_uid;
|
|
42769
|
-
const authorNickname = author?.nickname;
|
|
42770
|
-
const authorInCreators = rawCreators.some((c) => authorUid && c.uid && c.uid === authorUid || authorSecUid && c.sec_uid && c.sec_uid === authorSecUid || authorNickname && c.nickname && c.nickname === authorNickname);
|
|
42771
|
-
const co_creators = rawCreators.map((c) => {
|
|
42772
|
-
return {
|
|
42773
|
-
avatar_url: c.avatar_thumb?.url_list?.[0] ?? (c.avatar_thumb?.uri ? `https://p3.douyinpic.com/${c.avatar_thumb.uri}` : void 0),
|
|
42774
|
-
nickname: c.nickname,
|
|
42775
|
-
role_title: c.role_title
|
|
42776
|
-
};
|
|
42777
|
-
});
|
|
42778
|
-
return {
|
|
42779
|
-
co_creator_nums: Math.max(Number(raw.co_creator_nums || 0), co_creators.length) + (authorInCreators ? 0 : 1),
|
|
42780
|
-
co_creators
|
|
42781
|
-
};
|
|
42782
|
-
})()
|
|
42783
|
-
});
|
|
42784
|
-
e.reply(img);
|
|
42785
|
-
return true;
|
|
42786
|
-
}, { businessName: "测试抖音推送" });
|
|
42787
42705
|
var handleGlobalIgnore = wrapWithErrorHandler(async (e) => {
|
|
42788
42706
|
const url = e.msg.replace(/^#kkk推送全局忽略/, "").trim();
|
|
42789
42707
|
if (!url) {
|
|
@@ -42827,11 +42745,11 @@ var handleGlobalIgnore = wrapWithErrorHandler(async (e) => {
|
|
|
42827
42745
|
await e.reply("无法解析该B站链接或该链接不是动态链接");
|
|
42828
42746
|
return true;
|
|
42829
42747
|
}
|
|
42830
|
-
const dynamicInfo = await bilibiliFetcher.
|
|
42748
|
+
const dynamicInfo = await bilibiliFetcher.fetchDynamicDetail({
|
|
42831
42749
|
dynamic_id: idData.dynamic_id,
|
|
42832
42750
|
typeMode: "strict"
|
|
42833
42751
|
});
|
|
42834
|
-
const host_mid = dynamicInfo.data
|
|
42752
|
+
const host_mid = dynamicInfo.data.data.item.modules.module_author.mid;
|
|
42835
42753
|
if (!host_mid) {
|
|
42836
42754
|
await e.reply("无法获取该动态作者信息");
|
|
42837
42755
|
return true;
|
|
@@ -42885,16 +42803,11 @@ var changeBotID = karin$1.command(/^#kkk设置推送机器人/, handleChangeBotI
|
|
|
42885
42803
|
name: "kkk-推送功能-设置",
|
|
42886
42804
|
perm: "master"
|
|
42887
42805
|
});
|
|
42888
|
-
var testDouyinPush = karin$1.command(/^#测试抖音推送\s*(https?:\/\/[^\s]+)?/, handleTestDouyinPush, {
|
|
42889
|
-
name: "kkk-推送功能-测试",
|
|
42890
|
-
event: "message.group",
|
|
42891
|
-
perm: Config.douyin.push.permission,
|
|
42892
|
-
priority: -Infinity
|
|
42893
|
-
});
|
|
42894
42806
|
var globalIgnore = karin$1.command(/^#kkk推送全局忽略/, handleGlobalIgnore, {
|
|
42895
42807
|
name: "kkk-推送功能-全局忽略",
|
|
42896
42808
|
perm: "master",
|
|
42897
|
-
event: "message.group"
|
|
42809
|
+
event: "message.group",
|
|
42810
|
+
priority: 1
|
|
42898
42811
|
});
|
|
42899
42812
|
//#endregion
|
|
42900
42813
|
//#region src/apps/qrlogin.ts
|
|
@@ -47107,4 +47020,4 @@ mkdirSync(`${karinPathBase}/${Root.pluginName}/data`);
|
|
|
47107
47020
|
mkdirSync(Common.tempDri.images);
|
|
47108
47021
|
mkdirSync(Common.tempDri.video);
|
|
47109
47022
|
//#endregion
|
|
47110
|
-
export {
|
|
47023
|
+
export { createListItemNode as $, KuaishouCommentParamsSchema as $n, emitLogError as $r, createAmagiClient as $t, webConfig as A, isNetworkErrorResult as An, BilibiliColumnInfoParamsSchema as Ar, KuaishouMethodMapping as At, BilibiliDBBase as B, douyinSign as Bn, BilibiliQrcodeStatusParamsSchema as Br, DouyinMethodToFetcher as Bt, version as C, httpLogger as Cn, BilibiliArticleCardParamsSchema as Cr, amagi as Ct, task as D, fetchData as Dn, BilibiliBangumiInfoParamsSchema as Dr, DouyinApiRoutes as Dt, removeOldFiles as E, logger$2 as En, BilibiliAv2BvParamsSchema as Er, BilibiliMethodMapping as Et, getDouyinDB as F, kuaishouSign as Fn, BilibiliEmojiParamsSchema as Fr, BilibiliFetcherMethods as Ft, createBlockquoteNode as G, validateBilibiliParams as Gn, BilibiliVideoParamsSchema as Gr, XiaohongshuFetcherMethods as Gt, renderVideoPreviewPage as H, createBoundBilibiliFetcher as Hn, BilibiliValidateCaptchaParamsSchema as Hr, KuaishouInternalMethods as Ht, getStatisticsDB as I, kuaishouApiUrls as In, BilibiliLiveParamsSchema as Ir, BilibiliInternalMethods as It, createHeadingNode as J, validateXiaohongshuParams as Jn, emitApiSuccess as Jr, toFetcherMethod as Jt, createCodeBlockNode as K, validateDouyinParams as Kn, amagiEvents as Kr, XiaohongshuInternalMethods as Kt, initAllDatabases as L, douyinFetcher$1 as Ln, BilibiliLoginParamsSchema as Lr, BilibiliMethodToFetcher as Lt, cleanOldDynamicCache as M, xiaohongshuFetcher$1 as Mn, BilibiliCommentReplyParamsSchema as Mr, XiaohongshuMethodMapping as Mt, douyinDBInstance as N, createBoundKuaishouFetcher as Nn, BilibiliDanmakuParamsSchema as Nr, getApiRoute as Nt, testWrapWithErrorHandler as O, fetchResponse as On, BilibiliBangumiStreamParamsSchema as Or, DouyinMethodMapping as Ot, getBilibiliDB as P, kuaishouFetcher$1 as Pn, BilibiliDynamicParamsSchema as Pr, getEnglishMethodName as Pt, createLinkCardNode as Q, xiaohongshuSign as Qn, emitLogDebug as Qr, CommentType as Qt, StatisticsDBBase as R, createBoundDouyinFetcher as Rn, BilibiliMethodRoutes as Rr, DouyinFetcherMethods as Rt, help as S, qtparam as Sn, BilibiliApplyCaptchaParamsSchema as Sr, CreateApp as St, dylogin as T, logMiddleware as Tn, BilibiliArticleParamsSchema as Tr, BilibiliApiRoutes as Tt, renderRichTextToReact as U, createErrorResponse as Un, BilibiliValidationSchemas as Ur, KuaishouMethodToFetcher as Ut, reactServerRender as V, bilibiliFetcher$1 as Vn, BilibiliUserParamsSchema as Vr, KuaishouFetcherMethods as Vt, createAtNode as W, createSuccessResponse$1 as Wn, BilibiliVideoDownloadParamsSchema as Wr, MethodMaps as Wt, createImageNode as X, XiaohongshuValidationSchemas as Xn, emitHttpResponse as Xr, AdditionalType as Xt, createHorizontalRuleNode as Y, XiaohongshuMethodRoutes as Yn, emitHttpRequest as Yr, DynamicType as Yt, createLineBreakNode as Z, xiaohongshuApiUrls as Zn, emitLog as Zr, MajorType as Zt, douyinPushList as _, bilibiliErrorCodeMap as _n, DouyinSearchParamsSchema as _r, bilibiliFetcher as _t, bilibiliAPP as a, bilibili$1 as ai, createKuaishouRoutes as an, KuaishouValidationSchemas as ar, createSearchKeywordNode as at, setbiliPush as b, av2bv as bn, DouyinValidationSchemas as br, reloadAmagiConfig as bt, prefix as c, getBilibiliData as ci, douyinUtils as cn, DouyinCommentReplyParamsSchema as cr, createViewPictureNode as ct, groupStatistics as d, Root as di, douyin$1 as dn, DouyinEmojiProParamsSchema as dr, extractRichTextPlainText as dt, emitLogInfo as ei, xiaohongshuUtils as en, KuaishouEmojiParamsSchema as er, createListNode as et, qrLogin as f, bilibiliUtils as fn, DouyinHotWordsParamsSchema as fr, normalizeRichTextNodes as ft, douyinPush as g, handleError as gn, DouyinQrcodeParamsSchema as gr, amagiClient as gt, changeBotID as h, ValidationError as hn, DouyinMusicParamsSchema as hr, SOFT_ERROR_CODES as ht, update as i, emitNetworkRetry as ii, kuaishouUtils as in, KuaishouUserWorkListParamsSchema as ir, createRichTextDocument as it, bilibiliDBInstance as j, createBoundXiaohongshuFetcher as jn, BilibiliCommentParamsSchema as jr, XiaohongshuApiRoutes as jt, template_default as k, getHeadersAndData as kn, BilibiliBv2AvParamsSchema as kr, KuaishouApiRoutes as kt, xiaohongshuAPP as l, getDouyinData as li, createDouyinRoutes as ln, DouyinDanmakuParamsSchema as lr, createVoteNode as lt, bilibiliPushList as m, ApiError as mn, DouyinMethodRoutes as mr, AmagiError as mt, kkkUpdateCommand as n, emitLogWarn as ni, createBoundXiaohongshuApi as nn, KuaishouMethodRoutes as nr, createMentionNode as nt, douyinAPP as o, createBoundBilibiliApi as oi, createBoundKuaishouApi as on, KuaishouVideoParamsSchema as or, createTextNode as ot, bilibiliPush as p, createBilibiliRoutes as pn, DouyinLiveRoomParamsSchema as pr, AmagiBase as pt, createEmojiNode as q, validateKuaishouParams as qn, emitApiError as qr, XiaohongshuMethodToFetcher as qt, kkkUpdateTest as r, emitNetworkError as ri, xiaohongshu$1 as rn, KuaishouUserProfileParamsSchema as rr, createParagraphNode as rt, kuaishouAPP as s, bilibiliApiUrls as si, kuaishou$1 as sn, DouyinCommentParamsSchema as sr, createTopicNode as st, kkkUpdate as t, emitLogMark as ti, createXiaohongshuRoutes as tn, KuaishouLiveRoomInfoParamsSchema as tr, createLotteryNode as tt, globalStatistics as u, getKuaishouData as ui, createBoundDouyinApi as un, DouyinEmojiListParamsSchema as ur, createWebLinkNode as ut, forcePush as v, wbi_sign as vn, DouyinUserListParamsSchema as vr, douyinFetcher as vt, biLogin as w, initLogger as wn, BilibiliArticleInfoParamsSchema as wr, amagiClient$1 as wt, setdyPush as x, bv2av as xn, DouyinWorkParamsSchema as xr, softFetch as xt, globalIgnore as y, parseDmSegMobileReply as yn, DouyinUserParamsSchema as yr, kuaishouFetcher as yt, DouyinDBBase as z, douyinApiUrls as zn, BilibiliQrcodeParamsSchema as zr, DouyinInternalMethods as zt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as createListItemNode, G as createBlockquoteNode, J as createHeadingNode, K as createCodeBlockNode, Q as createLinkCardNode, U as renderRichTextToReact, W as createAtNode, X as createImageNode, Y as createHorizontalRuleNode, Z as createLineBreakNode, at as createSearchKeywordNode, ct as createViewPictureNode, dt as extractRichTextPlainText, et as createListNode, ft as normalizeRichTextNodes, it as createRichTextDocument, lt as createVoteNode, nt as createMentionNode, ot as createTextNode, q as createEmojiNode, rt as createParagraphNode, st as createTopicNode, tt as createLotteryNode, ut as createWebLinkNode } from "./main.js";
|
|
2
2
|
export { createAtNode, createBlockquoteNode, createCodeBlockNode, createEmojiNode, createHeadingNode, createHorizontalRuleNode, createImageNode, createLineBreakNode, createLinkCardNode, createListItemNode, createListNode, createLotteryNode, createMentionNode, createParagraphNode, createRichTextDocument, createSearchKeywordNode, createTextNode, createTopicNode, createViewPictureNode, createVoteNode, createWebLinkNode, extractRichTextPlainText, normalizeRichTextNodes, renderRichTextToReact };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as renderVideoPreviewPage, V as reactServerRender, k as template_default } from "./main.js";
|
|
2
2
|
export { template_default as default, reactServerRender, renderVideoPreviewPage };
|