koishi-plugin-video-parser-all 0.9.0 → 0.9.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/lib/index.js CHANGED
@@ -16,7 +16,7 @@ exports.Config = koishi_1.Schema.intersect([
16
16
  debug: koishi_1.Schema.boolean().default(false).description('开启调试模式,在控制台输出详细日志'),
17
17
  }).description('基础设置'),
18
18
  koishi_1.Schema.object({
19
- unifiedMessageFormat: koishi_1.Schema.string().role('textarea').default(`\${标题}\n\${作者}\n\${简介}\n点赞:\${点赞数}\n收藏:\${收藏数}\n转发:\${转发数}\n播放:\${播放数}\n评论:\${评论数}`).description('统一消息格式,可用变量:${标题} ${作者} ${简介} ${点赞数} ${收藏数} ${转发数} ${播放数} ${评论数} ${视频时长} ${发布时间} ${图片数量} ${作者ID} ${视频链接} ${封面} ${音乐作者} ${音乐标题}'),
19
+ unifiedMessageFormat: koishi_1.Schema.string().role('textarea').default(`\${标题}\n\${作者}\n\${简介}\n点赞:\${点赞数}\n收藏:\${收藏数}\n转发:\${转发数}\n播放:\${播放数}\n评论:\${评论数}`).description('统一消息格式,可用变量:${标题} ${作者} ${简介} ${点赞数} ${收藏数} ${转发数} ${播放数} ${评论数} ${视频时长} ${发布时间} ${图片数量} ${作者ID} ${封面}'),
20
20
  }).description('消息格式设置'),
21
21
  koishi_1.Schema.object({
22
22
  showImageText: koishi_1.Schema.boolean().default(true).description('是否发送解析后的文字内容'),
@@ -266,10 +266,7 @@ function generateFormattedText(p, format) {
266
266
  '发布时间': p.publishTime ? formatPublishTime(p.publishTime) : '',
267
267
  '图片数量': String(imageCount),
268
268
  '作者ID': p.uid,
269
- '视频链接': p.video,
270
269
  '封面': p.cover,
271
- '音乐作者': p.music.author || '',
272
- '音乐标题': p.music.title || '',
273
270
  };
274
271
  const lines = format.split('\n');
275
272
  const resultLines = [];
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.0",
4
+ "version": "0.9.1",
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
- - 📤 Support OneBot message forwarding for better image/video display
20
+ - 📤 Supports message merging and forwarding on the OneBot platform
21
21
  - 💬 All prompt texts are customizable for multilingual scenarios
22
22
 
23
23
  ## 项目仓库 (Repository)
@@ -97,10 +97,7 @@ This is a **multi-platform video/image parsing plugin** developed for the Koishi
97
97
  | `${发布时间}` | 发布时间(格式化) | 所有平台 |
98
98
  | `${图片数量}` | 图集图片数量(live_photo 或 images 的数量) | 图集 |
99
99
  | `${作者ID}` | 作者唯一标识ID | 部分平台 |
100
- | `${视频链接}` | 视频直链地址 | 视频 |
101
100
  | `${封面}` | 封面图片地址 | 所有平台 |
102
- | `${音乐作者}` | 背景音乐作者 | 部分平台 |
103
- | `${音乐标题}` | 背景音乐标题 | 部分平台 |
104
101
 
105
102
  > 注:部分变量可能因平台API返回数据不同而显示为空,空值行会自动隐藏。
106
103
 
@@ -121,7 +118,7 @@ This is a **multi-platform video/image parsing plugin** developed for the Koishi
121
118
  | YouTube (油管) | youtube, youtu.be | 视频 |
122
119
  | TikTok (国际版抖音) | tiktok, tiktok.com | 短视频 |
123
120
  | 好看视频 | haokan, haokan.baidu.com | 短视频 |
124
- | 梨视频 | li (video.li) | 短视频 |
121
+ | 梨视频 | video.li | 短视频 |
125
122
  | 美拍 | meipai, meipai.com | 短视频 |
126
123
  | 全民直播 | quanmin (quanmin.tv) | 直播 |
127
124
  | Twitter / X | twitter, x.com | 视频、图文 |