karin-plugin-kkk 2.32.1 → 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 +14 -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 +13 -104
- 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,20 @@
|
|
|
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
|
+
|
|
5
19
|
## [2.32.1](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.32.0...v2.32.1) (2026-05-27)
|
|
6
20
|
|
|
7
21
|
|
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: "纯文动态推送",
|
|
@@ -37731,7 +37731,7 @@ var Bilibilipush = class extends Base {
|
|
|
37731
37731
|
play: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.stat.play,
|
|
37732
37732
|
cover: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major.archive?.cover,
|
|
37733
37733
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37734
|
-
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),
|
|
37735
37735
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37736
37736
|
} };
|
|
37737
37737
|
break;
|
|
@@ -37755,13 +37755,13 @@ var Bilibilipush = class extends Base {
|
|
|
37755
37755
|
}
|
|
37756
37756
|
}
|
|
37757
37757
|
original_content = { DYNAMIC_TYPE_DRAW: {
|
|
37758
|
-
title: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major?.opus?.title
|
|
37758
|
+
title: data[dynamicId].Dynamic_Data.orig.modules.module_dynamic.major?.opus?.title ?? void 0,
|
|
37759
37759
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37760
37760
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37761
37761
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37762
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),
|
|
37763
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 })),
|
|
37764
|
-
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),
|
|
37765
37765
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37766
37766
|
} };
|
|
37767
37767
|
break;
|
|
@@ -37787,7 +37787,7 @@ var Bilibilipush = class extends Base {
|
|
|
37787
37787
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37788
37788
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37789
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),
|
|
37790
|
-
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),
|
|
37791
37791
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image
|
|
37792
37792
|
} };
|
|
37793
37793
|
break;
|
|
@@ -37798,7 +37798,7 @@ var Bilibilipush = class extends Base {
|
|
|
37798
37798
|
usernameMeta: getUsernameMetadata(data[dynamicId].Dynamic_Data.orig.modules.module_author),
|
|
37799
37799
|
create_time: TimeFormatter.toDateTime(data[dynamicId].Dynamic_Data.orig.modules.module_author.pub_ts),
|
|
37800
37800
|
avatar_url: data[dynamicId].Dynamic_Data.orig.modules.module_author.face,
|
|
37801
|
-
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),
|
|
37802
37802
|
frame: data[dynamicId].Dynamic_Data.orig.modules.module_author.pendant.image,
|
|
37803
37803
|
cover: liveData.live_play_info.cover,
|
|
37804
37804
|
text_large: liveData.live_play_info.watched_show.text_large,
|
|
@@ -37829,7 +37829,7 @@ var Bilibilipush = class extends Base {
|
|
|
37829
37829
|
total_favorited: Count(userINFO.data.data.like_num),
|
|
37830
37830
|
following_count: Count(userINFO.data.data.card.attention),
|
|
37831
37831
|
dynamicTYPE: "转发动态推送",
|
|
37832
|
-
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.
|
|
37832
|
+
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.decorate_card),
|
|
37833
37833
|
render_time: TimeFormatter.now(),
|
|
37834
37834
|
original_content,
|
|
37835
37835
|
imgList: imgList.length > 0 ? imgList : null,
|
|
@@ -42702,92 +42702,6 @@ var handleChangeBotID = wrapWithErrorHandler(async (e) => {
|
|
|
42702
42702
|
await e.reply("推送机器人已修改为" + newBotId);
|
|
42703
42703
|
return true;
|
|
42704
42704
|
}, { businessName: "设置推送机器人" });
|
|
42705
|
-
var handleTestDouyinPush = wrapWithErrorHandler(async (e) => {
|
|
42706
|
-
const iddata = await getDouyinID(e, String(e.msg.match(/(http|https):\/\/.*\.(douyin|iesdouyin)\.com\/[^ ]+/g)));
|
|
42707
|
-
const workInfo = await douyinFetcher.parseWork({
|
|
42708
|
-
aweme_id: iddata.aweme_id,
|
|
42709
|
-
typeMode: "strict"
|
|
42710
|
-
});
|
|
42711
|
-
const userProfile = await douyinFetcher.fetchUserProfile({
|
|
42712
|
-
sec_uid: workInfo.data.aweme_detail.author.sec_uid,
|
|
42713
|
-
typeMode: "strict"
|
|
42714
|
-
});
|
|
42715
|
-
const realUrl = Config.douyin.push.shareType === "web" && await new Network({
|
|
42716
|
-
url: workInfo.data.aweme_detail.share_url,
|
|
42717
|
-
headers: {
|
|
42718
|
-
"User-Agent": "Apifox/1.0.0 (https://apifox.com)",
|
|
42719
|
-
Accept: "*/*",
|
|
42720
|
-
"Accept-Encoding": "gzip, deflate, br",
|
|
42721
|
-
Connection: "keep-alive"
|
|
42722
|
-
}
|
|
42723
|
-
}).getLocation();
|
|
42724
|
-
const workTypeInfo = getWorkTypeInfo(workInfo.data.aweme_detail);
|
|
42725
|
-
const coverUrl = getWorkCoverUrl(workTypeInfo, workInfo.data.aweme_detail);
|
|
42726
|
-
if (workTypeInfo.isArticle) {
|
|
42727
|
-
const content = JSON.parse(workInfo.data.aweme_detail.article_info.article_content);
|
|
42728
|
-
const fe_data = JSON.parse(workInfo.data.aweme_detail.article_info.fe_data);
|
|
42729
|
-
const img = await Render(e, "douyin/article-work", {
|
|
42730
|
-
title: workInfo.data.aweme_detail.article_info.article_title,
|
|
42731
|
-
markdown: content.markdown,
|
|
42732
|
-
images: fe_data.image_list || [],
|
|
42733
|
-
read_time: fe_data.read_time || 0,
|
|
42734
|
-
dianzan: Common.count(workInfo.data.aweme_detail.statistics.digg_count),
|
|
42735
|
-
pinglun: Common.count(workInfo.data.aweme_detail.statistics.comment_count),
|
|
42736
|
-
shouchang: Common.count(workInfo.data.aweme_detail.statistics.collect_count),
|
|
42737
|
-
share: Common.count(workInfo.data.aweme_detail.statistics.share_count),
|
|
42738
|
-
create_time: format(fromUnixTime(workInfo.data.aweme_detail.create_time), "yyyy-MM-dd HH:mm"),
|
|
42739
|
-
avater_url: "https://p3-pc.douyinpic.com/aweme/1080x1080/" + userProfile.data.user.avatar_larger.uri,
|
|
42740
|
-
username: workInfo.data.aweme_detail.author.nickname,
|
|
42741
|
-
抖音号: userProfile.data.user.unique_id === "" ? userProfile.data.user.short_id : userProfile.data.user.unique_id,
|
|
42742
|
-
获赞: Common.count(userProfile.data.user.total_favorited),
|
|
42743
|
-
关注: Common.count(userProfile.data.user.following_count),
|
|
42744
|
-
粉丝: Common.count(userProfile.data.user.follower_count),
|
|
42745
|
-
share_url: workInfo.data.aweme_detail.share_url,
|
|
42746
|
-
useDarkTheme: false
|
|
42747
|
-
});
|
|
42748
|
-
e.reply(img);
|
|
42749
|
-
return true;
|
|
42750
|
-
}
|
|
42751
|
-
const img = await Render(e, workTypeInfo.templatePath, {
|
|
42752
|
-
image_url: coverUrl,
|
|
42753
|
-
desc: workInfo.data.aweme_detail.desc,
|
|
42754
|
-
dianzan: Common.count(workInfo.data.aweme_detail.statistics.digg_count),
|
|
42755
|
-
pinglun: Common.count(workInfo.data.aweme_detail.statistics.comment_count),
|
|
42756
|
-
share: Common.count(workInfo.data.aweme_detail.statistics.share_count),
|
|
42757
|
-
shouchang: Common.count(workInfo.data.aweme_detail.statistics.collect_count),
|
|
42758
|
-
create_time: format(fromUnixTime(workInfo.data.aweme_detail.create_time), "yyyy-MM-dd HH:mm"),
|
|
42759
|
-
avater_url: "https://p3-pc.douyinpic.com/aweme/1080x1080/" + userProfile.data.user.avatar_larger.uri,
|
|
42760
|
-
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`,
|
|
42761
|
-
username: workInfo.data.aweme_detail.author.nickname,
|
|
42762
|
-
抖音号: userProfile.data.user.unique_id === "" ? userProfile.data.user.short_id : userProfile.data.user.unique_id,
|
|
42763
|
-
粉丝: Common.count(userProfile.data.user.follower_count),
|
|
42764
|
-
获赞: Common.count(userProfile.data.user.total_favorited),
|
|
42765
|
-
关注: Common.count(userProfile.data.user.following_count),
|
|
42766
|
-
cooperation_info: (() => {
|
|
42767
|
-
const raw = workInfo.data.aweme_detail.cooperation_info;
|
|
42768
|
-
if (!raw) return void 0;
|
|
42769
|
-
const rawCreators = Array.isArray(raw.co_creators) ? raw.co_creators : [];
|
|
42770
|
-
const author = workInfo.data.aweme_detail.author;
|
|
42771
|
-
const authorUid = author?.uid;
|
|
42772
|
-
const authorSecUid = author?.sec_uid;
|
|
42773
|
-
const authorNickname = author?.nickname;
|
|
42774
|
-
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);
|
|
42775
|
-
const co_creators = rawCreators.map((c) => {
|
|
42776
|
-
return {
|
|
42777
|
-
avatar_url: c.avatar_thumb?.url_list?.[0] ?? (c.avatar_thumb?.uri ? `https://p3.douyinpic.com/${c.avatar_thumb.uri}` : void 0),
|
|
42778
|
-
nickname: c.nickname,
|
|
42779
|
-
role_title: c.role_title
|
|
42780
|
-
};
|
|
42781
|
-
});
|
|
42782
|
-
return {
|
|
42783
|
-
co_creator_nums: Math.max(Number(raw.co_creator_nums || 0), co_creators.length) + (authorInCreators ? 0 : 1),
|
|
42784
|
-
co_creators
|
|
42785
|
-
};
|
|
42786
|
-
})()
|
|
42787
|
-
});
|
|
42788
|
-
e.reply(img);
|
|
42789
|
-
return true;
|
|
42790
|
-
}, { businessName: "测试抖音推送" });
|
|
42791
42705
|
var handleGlobalIgnore = wrapWithErrorHandler(async (e) => {
|
|
42792
42706
|
const url = e.msg.replace(/^#kkk推送全局忽略/, "").trim();
|
|
42793
42707
|
if (!url) {
|
|
@@ -42831,11 +42745,11 @@ var handleGlobalIgnore = wrapWithErrorHandler(async (e) => {
|
|
|
42831
42745
|
await e.reply("无法解析该B站链接或该链接不是动态链接");
|
|
42832
42746
|
return true;
|
|
42833
42747
|
}
|
|
42834
|
-
const dynamicInfo = await bilibiliFetcher.
|
|
42748
|
+
const dynamicInfo = await bilibiliFetcher.fetchDynamicDetail({
|
|
42835
42749
|
dynamic_id: idData.dynamic_id,
|
|
42836
42750
|
typeMode: "strict"
|
|
42837
42751
|
});
|
|
42838
|
-
const host_mid = dynamicInfo.data
|
|
42752
|
+
const host_mid = dynamicInfo.data.data.item.modules.module_author.mid;
|
|
42839
42753
|
if (!host_mid) {
|
|
42840
42754
|
await e.reply("无法获取该动态作者信息");
|
|
42841
42755
|
return true;
|
|
@@ -42889,16 +42803,11 @@ var changeBotID = karin$1.command(/^#kkk设置推送机器人/, handleChangeBotI
|
|
|
42889
42803
|
name: "kkk-推送功能-设置",
|
|
42890
42804
|
perm: "master"
|
|
42891
42805
|
});
|
|
42892
|
-
var testDouyinPush = karin$1.command(/^#测试抖音推送\s*(https?:\/\/[^\s]+)?/, handleTestDouyinPush, {
|
|
42893
|
-
name: "kkk-推送功能-测试",
|
|
42894
|
-
event: "message.group",
|
|
42895
|
-
perm: Config.douyin.push.permission,
|
|
42896
|
-
priority: -Infinity
|
|
42897
|
-
});
|
|
42898
42806
|
var globalIgnore = karin$1.command(/^#kkk推送全局忽略/, handleGlobalIgnore, {
|
|
42899
42807
|
name: "kkk-推送功能-全局忽略",
|
|
42900
42808
|
perm: "master",
|
|
42901
|
-
event: "message.group"
|
|
42809
|
+
event: "message.group",
|
|
42810
|
+
priority: 1
|
|
42902
42811
|
});
|
|
42903
42812
|
//#endregion
|
|
42904
42813
|
//#region src/apps/qrlogin.ts
|
|
@@ -47111,4 +47020,4 @@ mkdirSync(`${karinPathBase}/${Root.pluginName}/data`);
|
|
|
47111
47020
|
mkdirSync(Common.tempDri.images);
|
|
47112
47021
|
mkdirSync(Common.tempDri.video);
|
|
47113
47022
|
//#endregion
|
|
47114
|
-
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 };
|