koishi-plugin-video-parser-all 1.5.3 → 1.5.5
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 -4
- package/package.json +1 -1
- package/readme.md +1 -1
package/lib/index.js
CHANGED
|
@@ -1136,14 +1136,16 @@ function apply(ctx, config) {
|
|
|
1136
1136
|
if (config.showAuthorAvatar && p.avatar && config.showAuthorAvatarText) {
|
|
1137
1137
|
text = text ? text + '\n' + (config.authorAvatarText || '作者头像:') : (config.authorAvatarText || '作者头像:');
|
|
1138
1138
|
}
|
|
1139
|
-
if (text && config.showImageText)
|
|
1139
|
+
if (text && config.showImageText) {
|
|
1140
1140
|
forwardMessages.push(buildForwardNode(session, text, botName));
|
|
1141
|
+
}
|
|
1141
1142
|
if (config.showAuthorAvatar && p.avatar) {
|
|
1142
1143
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.image(p.avatar), botName));
|
|
1143
1144
|
}
|
|
1144
1145
|
if (p.cover && config.showCoverImage && p.type !== 'live_photo' && p.type !== 'image' && p.type !== 'live') {
|
|
1145
|
-
if (config.showCoverText)
|
|
1146
|
+
if (config.showCoverText) {
|
|
1146
1147
|
forwardMessages.push(buildForwardNode(session, config.coverText || '封面:', botName));
|
|
1148
|
+
}
|
|
1147
1149
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.image(p.cover), botName));
|
|
1148
1150
|
}
|
|
1149
1151
|
if (config.showMusicCover && p.music.cover) {
|
|
@@ -1151,11 +1153,13 @@ function apply(ctx, config) {
|
|
|
1151
1153
|
}
|
|
1152
1154
|
if (p.type === 'image' || p.type === 'live_photo' || (p.type === 'live' && (p.live_photo?.length || p.images?.length))) {
|
|
1153
1155
|
const imageUrls = p.images?.length ? p.images : (p.live_photo?.map(lp => lp.image) ?? []);
|
|
1154
|
-
for (const imgUrl of imageUrls)
|
|
1156
|
+
for (const imgUrl of imageUrls) {
|
|
1155
1157
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.image(imgUrl), botName));
|
|
1158
|
+
}
|
|
1156
1159
|
}
|
|
1157
|
-
if (p.video && p.type !== 'live')
|
|
1160
|
+
if (p.video && p.type !== 'live') {
|
|
1158
1161
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.video(p.video), botName));
|
|
1162
|
+
}
|
|
1159
1163
|
if (config.showMusicVoice && p.music.url) {
|
|
1160
1164
|
forwardMessages.push(buildForwardNode(session, koishi_1.h.audio(p.music.url), botName));
|
|
1161
1165
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -190,7 +190,7 @@ If you use `downloadEngine: 'downloads'`, please install the optional dependency
|
|
|
190
190
|
|----------------------|-------------------------|
|
|
191
191
|
| Minecraft-1314 | 插件完整开发 (Complete plugin development) |
|
|
192
192
|
| ShiraiKuroko003 | 修复消息格式设置问题并且PR-1.2.5版本已修复 (Fixed message format issue, PR-1.2.5) |
|
|
193
|
-
| cyavb | 提交功能建议-给自定义API添加KEY
|
|
193
|
+
| cyavb | 提交功能建议-给自定义API添加KEY认证-已采纳 (Suggested custom API key auth - adopted) |
|
|
194
194
|
| Keep785 | 提交Bug-无法正常关闭发送封面-已修复<br>提交Bug-解析问题-已修复 (Reported bug - cannot disable cover sending - fixed<br>Reported bug - parsing issue - fixed) |
|
|
195
195
|
| dzt2008 + Apricityx | 提交Bug-会对非支持视频平台URL进行误解析-已修复 (Reported incorrect parsing of unsupported URLs - fixed) |
|
|
196
196
|
| 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) |
|