🐞 fix: 修复ytb出现的限制大小bug

This commit is contained in:
zhiyu1998 2024-08-08 23:39:10 +08:00
parent 426e01bede
commit 8750dc4314

View File

@ -2101,8 +2101,6 @@ export class tools extends plugin {
}
const stats = fs.statSync(path);
const videoSize = Math.floor(stats.size / (1024 * 1024));
logger.info(typeof videoSize);
logger.info(typeof videoSizeLimit);
if (videoSize > videoSizeLimit) {
e.reply(`当前视频大小:${ videoSize }MB\n大于设置的最大限制,\n改为上传群文件`);
await this.uploadGroupFile(e, path);