lyg
2024-06-15 7a076746f03382e1da7e6b60dd0779678f6fee8a
修复PDF页数获取异常
1个文件已修改
2 ■■■ 已修改文件
src/main.mjs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.mjs
@@ -315,7 +315,7 @@
    book.state = `下载完成`;
    book.format = ext;
    book.file = filepath;
    book.pages = await getPdfPages(filepath);
    book.pages = await getPdfPages(filepath).catch(() => 0);
    console.log(`下载完成:${filepath}`);
    return;
  }