@wahaha216/koishi-plugin-jmcomic
v0.3.0
Published
下载JM本子,无需python。支持pdf、zip加密。
Maintainers
Readme
@wahaha216/koishi-plugin-jmcomic
下载 JM 漫画,无需 python。
Windows下的注意事项
本插件使用了 muhammara 依赖,该依赖需要 c++编译环境 ,因此windows极大概率会出现无法使用
(貌似koishi安装插件时看不到报错,但插件无法使用大概率与此有关)
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS You need to install the latest version of Visual Studio
npm error gyp ERR! find VS including the "Desktop development with C++" workload.
npm error gyp ERR! find VS For more information consult the documentation at:
npm error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use解决方法1(推荐)
使用官方源 registry https://registry.npmjs.org/, 官方源可以下载预编译文件,跳过本地编译
解决方法2
- 前往 Visual Studio 下载页面。
- 下载并运行 Visual Studio Installer。
- 在安装界面中,勾选 “使用 C++ 的桌面开发” (Desktop development with C++)。
- 确保右侧的安装详细信息中勾选了:
- MSVC v14x - VS 2022 C++ x64/x86 生成工具
- Windows 10/11 SDK
- 安装
使用方式
jm album xxxxxx
jm album info xxxxxx
jm photo xxxxxx
jm blog xxxx
jm queue可在配置中配置是发送 PDF 还是 ZIP 压缩包,支持加密。
更新日志
- 流式生成PDF(PR #12 by @Wyatex)
- 更新
muhammara到6.0.4,并移除zip-lib - 移除测试用的
log - 更新客户端域名列表
添加所有域名请求失败后,自动更新域名功能
1.解析时添加章节数日志
2.替换最新的客户端域名
支持 JM 文库
添加监听聊天内容,检测到 JMxxx 时发送第一张图片(不是封面)
文件名过长时截断至 200 字节
调整 debug 日志
修正文化名返回值
将手动路径拼接替换为 join
健壮文件名序列化,尝试修复部分文件名导致无法创建文件
高度不足图片分割数时输出原图,尝试规避提取图片高度为 0 的情况
搜索分页限制
搜索结果分割空行
简易搜索功能
修复队列丢失 i18n key 的问题
添加队列时返回队列信息
提取代码
队列系统
下载并发与解密并发限制
修改配置页面顺序、分类
不再直接暴露变量,改为逐级传递
统一暴露 Error 类
添加域名切换条件
添加了一些错误提示
修改使用示例
文件名移除前后空格
新增文件发送配置,用于配置文件是以 buffer 读取后发送还是以本地地址的形式发送。docker 中使用 file 形式需要在 bot 实现端同时映射/koishi 目录
忘了给自动删除做判断
依赖从peerDependencies移动到dependencies
初版
