🐞 fix: 修复bili分页解析 & 搜书无书问题

This commit is contained in:
RrOrange 2023-04-11 18:52:56 +08:00
parent 77afea7470
commit b2eb767318
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ export class query extends plugin {
.flatMap(item => { .flatMap(item => {
return item.value.flat(); return item.value.flat();
}); });
await e.reply(await Bot.makeForwardMsg(combineRet)); combineRet.length > 0 && await e.reply(await Bot.makeForwardMsg(combineRet));
// ZHelper 特殊处理 // ZHelper 特殊处理
const zHelper = await getZHelper(e, keyword); const zHelper = await getZHelper(e, keyword);
zHelper.unshift({ zHelper.unshift({

View File

@ -402,7 +402,7 @@ export class tools extends plugin {
// 加入图片 // 加入图片
biliInfo.unshift(segment.image(pic)) biliInfo.unshift(segment.image(pic))
// 限制视频解析 // 限制视频解析
const durationInMinutes = (pages?.[curPage].duration / 60).toFixed(0); const durationInMinutes = (curDuration / 60).toFixed(0);
biliInfo.push(`\n-----------------------限制说明-----------------------\n当前视频时长约:${durationInMinutes}分钟,\n大于管理员设置的最大时长 ${this.biliDuration / 60} 分钟!`) biliInfo.push(`\n-----------------------限制说明-----------------------\n当前视频时长约:${durationInMinutes}分钟,\n大于管理员设置的最大时长 ${this.biliDuration / 60} 分钟!`)
e.reply(biliInfo); e.reply(biliInfo);
// 总结 // 总结