koishi-plugin-bilibili-videolink-analysis 1.1.15 → 1.1.16
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/lib/index.js +7 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -91,7 +91,7 @@ exports.Config = Schema.intersect([
|
|
|
91
91
|
]).default("bv").description("ID 偏好").hidden(),
|
|
92
92
|
|
|
93
93
|
bVideo_area: Schema.string().role('textarea', { rows: [8, 16] }).description("图文解析的返回格式<br>注意变量格式,以及变量名称。<br>比如 `${标题}` 不可以变成`${标题123}`,你可以直接删掉但是不能修改变量名称哦<br>当然变量也不能无中生有,下面的默认值内容 就是所有变量了,你仅可以删去变量 或者修改变量之外的格式。<br>· 特殊变量`${~~~}`表示分割线,会把上下内容分为两个信息单独发送。")
|
|
94
|
-
.default("${标题} --- ${UP主}\n
|
|
94
|
+
.default("${标题} --- ${UP主}\n${简介}\n点赞:${点赞} --- 投币:${投币}\n收藏:${收藏} --- 转发:${转发}\n观看:${观看} --- 弹幕:${弹幕}\n${~~~}\n${封面}"),
|
|
95
95
|
bVideoShowLink: Schema.boolean().default(false).description("在末尾显示视频的链接地址 `开启可能会导致其他bot循环解析`"),
|
|
96
96
|
bVideoShowIntroductionTofixed: Schema.number().default(50).description("视频的`简介`最大的字符长度<br>超出部分会使用 `...` 代替"),
|
|
97
97
|
}).description("链接的图文解析设置"),
|
|
@@ -704,12 +704,12 @@ display: none !important;
|
|
|
704
704
|
'${UP主}': info["data"]["owner"]["name"],
|
|
705
705
|
'${封面}': `<img src="${info["data"]["pic"]}"/>`,
|
|
706
706
|
'${简介}': description, // 使用处理后的简介
|
|
707
|
-
'${点赞}':
|
|
708
|
-
'${投币}':
|
|
709
|
-
'${收藏}':
|
|
710
|
-
'${转发}':
|
|
711
|
-
'${观看}':
|
|
712
|
-
'${弹幕}':
|
|
707
|
+
'${点赞}': `${(0, numeral)(info["data"]["stat"]["like"], this.config)}`,
|
|
708
|
+
'${投币}': `${(0, numeral)(info["data"]["stat"]["coin"], this.config)}`,
|
|
709
|
+
'${收藏}': `${(0, numeral)(info["data"]["stat"]["favorite"], this.config)}`,
|
|
710
|
+
'${转发}': `${(0, numeral)(info["data"]["stat"]["share"], this.config)}`,
|
|
711
|
+
'${观看}': `${(0, numeral)(info["data"]["stat"]["view"], this.config)}`,
|
|
712
|
+
'${弹幕}': `${(0, numeral)(info["data"]["stat"]["danmaku"], this.config)}`,
|
|
713
713
|
};
|
|
714
714
|
|
|
715
715
|
// 根据配置项中的格式替换占位符
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "koishi-plugin-bilibili-videolink-analysis",
|
|
3
3
|
"description": "[<ruby>Bilibili视频解析<rp>(</rp><rt>点我查看食用方法</rt><rp>)</rp></ruby>](https://www.npmjs.com/package/koishi-plugin-bilibili-videolink-analysis)解析B站链接(支持小程序卡片)支持搜索点播功能!灵感来自完美的 [bili-parser](/market?keyword=bili-parser) !",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.16",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
8
8
|
"files": [
|