koishi-plugin-video-parser-all 0.3.1 → 0.3.3

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.
Files changed (2) hide show
  1. package/package.json +6 -3
  2. package/readme.md +13 -22
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-video-parser-all",
3
- "description": "Koishi 全平台视频解析插件,支持抖音/快手/B站/小红书/微博/今日头条/皮皮搞笑/皮皮虾视频/图文链接解析",
4
- "version": "0.3.1",
3
+ "description": "Koishi 全平台视频解析插件,支持抖音/快手/B站/小红书/微博/今日头条/皮皮搞笑/皮皮虾/最右视频链接解析",
4
+ "version": "0.3.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -20,6 +20,8 @@
20
20
  "video",
21
21
  "parser",
22
22
  "image",
23
+ "card",
24
+ "miniprogram",
23
25
  "bilibili",
24
26
  "douyin",
25
27
  "kuaishou",
@@ -27,7 +29,8 @@
27
29
  "weibo",
28
30
  "toutiao",
29
31
  "pipigx",
30
- "pipixia"
32
+ "pipixia",
33
+ "zuiyou"
31
34
  ],
32
35
  "devDependencies": {
33
36
  "@koishijs/client": "^5.30.4",
package/readme.md CHANGED
@@ -3,22 +3,20 @@
3
3
  ## 项目介绍 (Project Introduction)
4
4
 
5
5
  ### 中文
6
- 这是一个为 Koishi 机器人框架开发的**全平台视频/图文解析插件**,支持自动识别并解析抖音、快手、B站、小红书、微博、今日头条、皮皮搞笑、皮皮虾等主流平台的短视频/图文链接。核心特性:
7
- - 🚀 自动识别多平台链接,无需手动指定平台
8
- - 🎨 自定义解析结果格式、返回内容类型(封面/链接/视频文件)
6
+ 这是一个为 Koishi 机器人框架开发的**视频解析插件**,支持自动识别并解析抖音、快手、B站、小红书、微博、今日头条、皮皮搞笑、皮皮虾、最右等主流平台的短视频链接。核心特性:
7
+ - 🚀 自动识别多平台视频,无需手动指定平台
8
+ - 🎨 自定义解析结果格式、返回内容类型(封面/链接/视频)
9
9
  - ⚡ 内置防重复解析、接口重试、自动缓存清理等实用功能
10
10
  - 📤 支持 OneBot 平台消息合并转发,优化展示体验
11
11
  - 🔌 内置多套解析 API,自动降级容错,提升解析成功率
12
- - 📸 同时支持视频解析和图文/图集解析
13
12
 
14
13
  ### English
15
- A multi-platform video/image parsing plugin for the Koishi bot framework, supporting automatic recognition and parsing of video/image links from Douyin, Kuaishou, Bilibili, Xiaohongshu, Weibo, Toutiao, Pipigx, Pipixia and other mainstream platforms. Core features:
16
- - 🚀 Auto-detect links across platforms without manual specification
17
- - 🎨 Customize result formatting and output types (cover/link/video file)
14
+ This is a **video parsing plugin** developed for the Koishi bot framework, supporting automatic recognition and parsing of short video links from mainstream platforms such as Douyin, Kuaishou, Bilibili, Xiaohongshu, Weibo, Toutiao, Pipi Funny, Pipi Shrimp, and Zuiyou. Core features:
15
+ - 🚀 Automatically recognizes videos from multiple platforms, no need to manually specify the platform.
16
+ - 🎨 Customize the parsing result format and return content type (cover/link/video)
18
17
  - ⚡ Built-in duplicate prevention, retry logic, auto cache cleanup
19
18
  - 📤 Support OneBot message forwarding for better display experience
20
19
  - 🔌 Multiple built-in parsing APIs with automatic failover
21
- - 📸 Support both video parsing and image album parsing
22
20
 
23
21
  ## 项目仓库 (Repository)
24
22
  - GitHub: `https://github.com/Minecraft-1314/koishi-plugin-video-parser-all`
@@ -28,7 +26,7 @@ A multi-platform video/image parsing plugin for the Koishi bot framework, suppor
28
26
 
29
27
  | 指令 (Command) | 说明 (Description) | 示例 (Example) |
30
28
  |----------------|--------------------|----------------|
31
- | `parse <url>` | 手动解析指定的视频/图文链接 | `parse https://v.douyin.com/xxxx/` |
29
+ | `parse <url>` | 手动解析指定的视频链接 | `parse https://v.douyin.com/xxxx/` |
32
30
  | `clear-cache` | 清理解析缓存和临时下载文件 | `clear-cache` |
33
31
 
34
32
  ## 配置项说明 (Configuration)
@@ -45,29 +43,22 @@ A multi-platform video/image parsing plugin for the Koishi bot framework, suppor
45
43
  | `returnContent.showVideoFile` | boolean | true | 是否发送视频文件 |
46
44
  | `maxDescLength` | number | 200 | 简介最大长度 |
47
45
  | `timeout` | number | 180000 | API 请求超时时间(毫秒) |
46
+ | `ignoreSendError` | boolean | true | 忽略消息发送错误,避免插件崩溃 |
47
+ | `enableForward` | boolean | false | 启用OneBot平台合并转发功能 |
48
+ | `downloadVideoBeforeSend` | boolean | false | 发送前下载视频到本地(仅OneBot) |
49
+ | `messageBufferDelay` | number | 0 | 消息缓冲延迟(秒) |
48
50
  | `retryTimes` | number | 0 | 接口重试次数 |
49
51
  | `retryInterval` | number | 0 | 重试间隔(毫秒) |
52
+ | `videoSendTimeout` | number | 0 | 视频发送超时时间(毫秒) |
50
53
  | `autoClearCacheInterval` | number | 60 | 自动清理缓存间隔(分钟) |
51
54
 
52
- ## 支持平台 (Supported Platforms)
53
-
54
- | 平台 (Platform) | 支持类型 (Supported Type) | 状态 (Status) |
55
- |-----------------|---------------------------|---------------|
56
- | 抖音 (Douyin) | 视频/图文 | ✅ 稳定 |
57
- | 快手 (Kuaishou) | 视频/图集 | ✅ 稳定 |
58
- | B站 (Bilibili) | 视频 | ✅ 稳定 |
59
- | 小红书 (Xiaohongshu) | 视频/图文 | ✅ 稳定 |
60
- | 微博 (Weibo) | 视频/图文 | ✅ 稳定 |
61
- | 今日头条 (Toutiao) | 视频 | ✅ 稳定 |
62
- | 皮皮搞笑 (Pipigx) | 视频/图文 | ✅ 稳定 |
63
- | 皮皮虾 (Pipixia) | 视频/图文 | ✅ 稳定 |
64
-
65
55
  ## 项目贡献者 (Contributors)
66
56
 
67
57
  | 贡献者 (Contributor) | 贡献内容 (Contribution) |
68
58
  |----------------------|-------------------------|
69
59
  | Minecraft-1314 | 插件完整开发 (Complete plugin development) |
70
60
  | JH-Ahua | BugPk-Api 支持 |
61
+ | 素颜API | 素颜API 支持 |
71
62
  | (欢迎提交 PR 加入贡献者列表) | (Welcome to submit PR to join the contributor list) |
72
63
 
73
64
  ## 许可协议 (License)