koishi-plugin-bilibili-videolink-analysis 1.1.7 → 1.1.8
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 +5 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -100,7 +100,7 @@ exports.Config = Schema.intersect([
|
|
|
100
100
|
//bVideoStat: Schema.boolean().default(true).description("显示状态(*三连数据*)"),
|
|
101
101
|
//bVideoExtraStat: Schema.boolean().default(true).description("显示额外状态(*弹幕&观看*)"),
|
|
102
102
|
bVideo_area: Schema.string().role('textarea', { rows: [8, 16] }).description("图文解析的返回格式<br>注意变量格式,以及变量名称<br>比如 `${标题}` 不可以变成`${标题123}`,你可以直接删掉但是不能修改变量名称哦<br>当然变量也不能无中生有,下面的默认值内容 就是所有变量了,你仅可以删去变量 或者修改变量之外的格式。")
|
|
103
|
-
|
|
103
|
+
.default("${标题} --- ${UP主}\n---\n${封面}\n---\n${简介}\n---\n${点赞} --- ${投币}\n${收藏} --- ${转发}\n${观看} --- ${弹幕}"),
|
|
104
104
|
bVideoShowLink: Schema.boolean().default(false).description("在末尾显示视频的链接地址 `开启可能会导致其他bot循环解析`"),
|
|
105
105
|
}).description("链接的图文解析设置"),
|
|
106
106
|
|
|
@@ -349,8 +349,8 @@ display: none !important;
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
if (config.enable) { // 开启自动解析了
|
|
352
|
-
|
|
353
|
-
const ret = await extractLinks(session, config, ctx,
|
|
352
|
+
|
|
353
|
+
const ret = await extractLinks(session, config, ctx, [{ type: 'Video', id: chosenVideo.id }], logger); // 提取链接
|
|
354
354
|
if (ret && !isLinkProcessedRecently(ret, lastProcessedUrls, config, logger)) {
|
|
355
355
|
await processVideoFromLink(session, config, ctx, lastProcessedUrls, logger, ret, options); // 解析视频并返回
|
|
356
356
|
}
|
|
@@ -456,8 +456,8 @@ display: none !important;
|
|
|
456
456
|
|
|
457
457
|
if (config.enable) {
|
|
458
458
|
// 开启自动解析了
|
|
459
|
-
|
|
460
|
-
const ret = await extractLinks(session, config, ctx,
|
|
459
|
+
|
|
460
|
+
const ret = await extractLinks(session, config, ctx, [{ type: 'Video', id: chosenVideo.id }], logger);
|
|
461
461
|
if (ret && !isLinkProcessedRecently(ret, lastProcessedUrls, config, logger)) {
|
|
462
462
|
await processVideoFromLink(session, config, ctx, lastProcessedUrls, logger, ret, options);
|
|
463
463
|
}
|
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.8",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
8
8
|
"files": [
|