koishi-plugin-video-parser-all 1.5.0 → 1.5.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 +8 -5
- package/package.json +1 -1
- package/readme.md +3 -3
package/lib/index.js
CHANGED
|
@@ -135,7 +135,7 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
135
135
|
downloadEngine: koishi_1.Schema.union([
|
|
136
136
|
koishi_1.Schema.const('internal').description('内置下载'),
|
|
137
137
|
koishi_1.Schema.const('aria2').description('aria2 下载(需 koishi-plugin-aria2-plus)'),
|
|
138
|
-
koishi_1.Schema.const('downloads').description('downloads
|
|
138
|
+
koishi_1.Schema.const('downloads').description('downloads 服务下载(需 koishi-plugin-downloads)'),
|
|
139
139
|
]).default('internal').description('下载引擎'),
|
|
140
140
|
}).description('性能与限制'),
|
|
141
141
|
koishi_1.Schema.object({
|
|
@@ -1108,9 +1108,10 @@ function apply(ctx, config) {
|
|
|
1108
1108
|
const text = item.text;
|
|
1109
1109
|
if (text && config.showImageText)
|
|
1110
1110
|
forwardMessages.push(buildForwardNode(session, text, botName));
|
|
1111
|
+
if (config.showAuthorAvatar && p.avatar && config.showAuthorAvatarText) {
|
|
1112
|
+
forwardMessages.push(buildForwardNode(session, config.authorAvatarText || '作者头像:', botName));
|
|
1113
|
+
}
|
|
1111
1114
|
if (config.showAuthorAvatar && p.avatar) {
|
|
1112
|
-
if (config.showAuthorAvatarText)
|
|
1113
|
-
forwardMessages.push(buildForwardNode(session, config.authorAvatarText || '作者头像:', botName));
|
|
1114
1115
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.image(p.avatar), botName));
|
|
1115
1116
|
}
|
|
1116
1117
|
if (p.cover && config.showCoverImage && p.type !== 'live_photo' && p.type !== 'image' && !(p.type === 'live' && (p.live_photo?.length || p.images?.length))) {
|
|
@@ -1151,9 +1152,11 @@ function apply(ctx, config) {
|
|
|
1151
1152
|
await sendWithTimeout(session, text);
|
|
1152
1153
|
await delay(300);
|
|
1153
1154
|
}
|
|
1155
|
+
if (config.showAuthorAvatar && p.avatar && config.showAuthorAvatarText) {
|
|
1156
|
+
await sendWithTimeout(session, config.authorAvatarText || '作者头像:');
|
|
1157
|
+
await delay(300);
|
|
1158
|
+
}
|
|
1154
1159
|
if (config.showAuthorAvatar && p.avatar) {
|
|
1155
|
-
if (config.showAuthorAvatarText)
|
|
1156
|
-
await sendWithTimeout(session, config.authorAvatarText || '作者头像:');
|
|
1157
1160
|
await sendMedia(session, p.avatar, 'image', config.forceDownloadAuthorAvatar, config.showAuthorAvatarFile).catch(() => { });
|
|
1158
1161
|
await delay(300);
|
|
1159
1162
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -179,7 +179,7 @@ If you use `downloadEngine: 'downloads'`, please install the optional dependency
|
|
|
179
179
|
| 皮皮搞笑 Pipigx | `h5.pipigx.com/pp/post/`, `ippzone.com` | 短视频 (Short video) |
|
|
180
180
|
| 皮皮虾 Pipixia | `pipix.com`, `pipixia.com` | 短视频 (Short video) |
|
|
181
181
|
| 最右 Zuiyou | `share.xiaochuankeji.cn/hybrid/share/post`, `izuiyou.com` | 短视频 (Short video) |
|
|
182
|
-
| 自定义平台 Custom | 通过 `customPlatforms` 配置添加 (Add via `customPlatforms`) | 取决于提供的 API (Depends on API) |
|
|
182
|
+
| 🔧 自定义平台 Custom | 通过 `customPlatforms` 配置添加 (Add via `customPlatforms`) | 取决于提供的 API (Depends on API) |
|
|
183
183
|
|
|
184
184
|
## 项目贡献者 (Contributors)
|
|
185
185
|
|
|
@@ -188,9 +188,9 @@ If you use `downloadEngine: 'downloads'`, please install the optional dependency
|
|
|
188
188
|
| Minecraft-1314 | 插件完整开发 (Complete plugin development) |
|
|
189
189
|
| ShiraiKuroko003 | 修复消息格式设置问题并且PR-1.2.5版本已修复 (Fixed message format issue, PR-1.2.5) |
|
|
190
190
|
| cyavb | 提交功能建议-给自定义API添加KEY认证-已修复 (Suggested custom API key auth - fixed) |
|
|
191
|
-
| Keep785 | 提交Bug-无法正常关闭发送封面-已修复<br>提交Bug-解析问题-已修复 (Reported
|
|
191
|
+
| Keep785 | 提交Bug-无法正常关闭发送封面-已修复<br>提交Bug-解析问题-已修复 (Reported bug - cannot disable cover sending - fixed<br>Reported bug - parsing issue - fixed) |
|
|
192
192
|
| dzt2008 + Apricityx | 提交Bug-会对非支持视频平台URL进行误解析-已修复 (Reported incorrect parsing of unsupported URLs - fixed) |
|
|
193
|
-
| linyves | 提交Bug-小红书图集重复发送封面-已修复<br>提交Bug-话题显示异常 #**[话题]#-已修复<br>提交建议-Live Photo 全部按普通图片处理-已采纳<br>提交Bug-解析后会把作者头像一起发送-已修复 |
|
|
193
|
+
| linyves | 提交Bug-小红书图集重复发送封面-已修复<br>提交Bug-话题显示异常 #**[话题]#-已修复<br>提交建议-Live Photo 全部按普通图片处理-已采纳<br>提交Bug-解析后会把作者头像一起发送-已修复 (Reported bug - duplicate cover for Xiaohongshu image posts - fixed<br>Reported bug - abnormal topic display #**[topic]# - fixed<br>Suggestion - treat Live Photos as normal images - adopted<br>Reported bug - author avatar sent together after parsing - fixed) |
|
|
194
194
|
| JH-Ahua | BugPk-Api 支持 (BugPk-Api support) |
|
|
195
195
|
| shangxue | 灵感来源 (Inspiration) |
|
|
196
196
|
|