karin-plugin-kkk 2.32.0 โ 2.32.1
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 +7 -0
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/main.js +18 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [2.32.1](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.32.0...v2.32.1) (2026-05-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ๐ ้่ฏฏไฟฎๅค
|
|
9
|
+
|
|
10
|
+
* **bilibili:** ๆจ้็ไบ ([cd87724](https://github.com/ikenxuan/karin-plugin-kkk/commit/cd8772438ed7c3a2c558f9a1b4455079e4a58f2c))
|
|
11
|
+
|
|
5
12
|
## [2.32.0](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.31.2...v2.32.0) (2026-05-27)
|
|
6
13
|
|
|
7
14
|
|
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.1",
|
|
3
|
+
"buildTime": "2026-05-27T15:04:43.740Z",
|
|
4
|
+
"buildTimestamp": 1779894283740,
|
|
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": "e2c27e19f5e49343f043463c394126b6d028719c",
|
|
9
|
+
"shortCommitHash": "e2c27e19"
|
|
10
10
|
}
|
package/lib/core_chunk/main.js
CHANGED
|
@@ -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
37734
|
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decoration_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,8 +37754,8 @@ 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 || "ๅพๆๅจๆ",
|
|
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,
|
|
@@ -37759,7 +37763,7 @@ var Bilibilipush = class extends Base {
|
|
|
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
37764
|
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decoration_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,19 +37782,19 @@ 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
37790
|
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.orig.modules.module_author.decoration_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,
|
|
@@ -37801,7 +37805,7 @@ var Bilibilipush = class extends Base {
|
|
|
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: {
|
|
@@ -37827,7 +37831,7 @@ var Bilibilipush = class extends Base {
|
|
|
37827
37831
|
dynamicTYPE: "่ฝฌๅๅจๆๆจ้",
|
|
37828
37832
|
decoration_card: generateDecorationCard(data[dynamicId].Dynamic_Data.modules.module_author.decoration_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 });
|