koishi-plugin-video-parser-all 0.9.2 → 0.9.4

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 CHANGED
@@ -41,7 +41,7 @@ exports.Config = koishi_1.Schema.intersect([
41
41
  unsupportedPlatformText: koishi_1.Schema.string().default('不支持该平台链接').description('不支持的平台提示'),
42
42
  invalidLinkText: koishi_1.Schema.string().default('无效的视频链接').description('无效链接提示(parse 指令)'),
43
43
  parseErrorPrefix: koishi_1.Schema.string().default('❌ 解析失败:').description('解析失败消息前缀'),
44
- parseErrorItemFormat: koishi_1.Schema.string().default('【${url}】: ${msg}').description('每条解析失败格式,可用 ${url} ${msg}'),
44
+ parseErrorItemFormat: koishi_1.Schema.string().default('【${url}】: ${msg}').description('每条解析失败格式,可用变量:${url}(链接)、${msg}(错误信息)'),
45
45
  }).description('界面文字设置'),
46
46
  ]);
47
47
  const logger = new koishi_1.Logger(exports.name);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-video-parser-all",
3
3
  "description": "Koishi 全平台视频解析插件,支持抖音/快手/B站/微博/小红书/剪映/YouTube/TikTok等20+平台",
4
- "version": "0.9.2",
4
+ "version": "0.9.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -8,7 +8,7 @@
8
8
  - 🤖 自动识别链接来源,即丢即用
9
9
  - 🎨 完全自定义的解析结果格式,支持多项变量替换,变量无值自动隐藏行
10
10
  - 🐛 内置Debug调试模式,可详细记录所有操作与API交互日志
11
- - 📤 支持OneBot平台消息合并转发
11
+ - 📤 支持OneBot平台消息合并转发,优化多图文展示体验
12
12
  - 💬 所有提示文案均可自定义,适配多语言场景
13
13
 
14
14
  ### English
@@ -17,7 +17,7 @@ This is a **multi-platform video/image parsing plugin** developed for the Koishi
17
17
  - 🤖 Auto-detection of link sources, just drop & go
18
18
  - 🎨 Fully customizable parsing result format with variable substitutions, empty variables hide the line automatically
19
19
  - 🐛 Built-in Debug mode, recording detailed operations and API interaction logs
20
- - 📤 Supports message merging and forwarding on the OneBot platform
20
+ - 📤 Support OneBot message forwarding for better image/video display
21
21
  - 💬 All prompt texts are customizable for multilingual scenarios
22
22
 
23
23
  ## 项目仓库 (Repository)
@@ -43,7 +43,7 @@ This is a **multi-platform video/image parsing plugin** developed for the Koishi
43
43
  ### 统一消息格式
44
44
  | 配置项 | 类型 | 默认值 | 说明 |
45
45
  |--------|------|--------|------|
46
- | `unifiedMessageFormat` | string | `\${标题}\n\${作者}\n\${简介}\n点赞:\${点赞数}\n收藏:\${收藏数}\n转发:\${转发数}\n播放:\${播放数}\n评论:\${评论数}` | 自定义解析结果的输出格式,支持变量替换。某行所有变量为空时自动隐藏该行 |
46
+ | `unifiedMessageFormat` | string | `标题:${标题}\n作者:${作者}\n简介:${简介}\n点赞:${点赞数}\n收藏:${收藏数}\n转发:${转发数}\n播放:${播放数}\n评论:${评论数}` | 自定义解析结果的输出格式,支持变量替换。某行所有变量为空时自动隐藏该行 |
47
47
 
48
48
  ### 内容显示设置
49
49
  | 配置项 | 类型 | 默认值 | 说明 |
@@ -78,7 +78,7 @@ This is a **multi-platform video/image parsing plugin** developed for the Koishi
78
78
  | `unsupportedPlatformText` | string | 不支持该平台链接 | 不支持的平台提示 |
79
79
  | `invalidLinkText` | string | 无效的视频链接 | 无效链接提示(parse 指令) |
80
80
  | `parseErrorPrefix` | string | ❌ 解析失败: | 解析失败消息前缀 |
81
- | `parseErrorItemFormat` | string | 【${url}】: ${msg} | 每条解析失败格式,可用 `${url}` `${msg}` |
81
+ | `parseErrorItemFormat` | string | 【${url}】: ${msg} | 每条解析失败的展示格式,可用 ${url}(链接)和 ${msg}(错误信息) |
82
82
 
83
83
  ## 支持的变量 (Supported Variables)
84
84
  在 `unifiedMessageFormat` 中可使用以下变量进行自定义格式化,某行所有变量均为空时该行不显示: