Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能添加来自EhViewer的压缩包时,获取.ehviewer内的数据。 #55

Open
sohiidayo opened this issue Feb 3, 2023 · 5 comments
Labels
enhancement New feature or request Maybe in the future It's good, but not now

Comments

@sohiidayo
Copy link

来自EhViewer的压缩包内有.ehviewer文件
以文本打开的话在第3和第4行包含了gid和token两个值。

有了gid和token可以拼出本本的链接:https://e-hentai.org/g/gid/token或者https://exhentai.org/g/gid/token

希望:
导入压缩包时能将这个文件利用起来。
用sqlite匹配数据时能将这两个值利用起来
举例:色の教科書
.ehviewer开头部分
image
EhViewer界面
image
image
sqlite查询gid:
image
提供测试用:(分卷压缩 )
https://github.com/sohiidayo/test

@sohiidayo sohiidayo added the enhancement New feature or request label Feb 3, 2023
@SchneeHertz
Copy link
Owner

近期还没有支持其他第三方软件的计划,之后再说

@SchneeHertz SchneeHertz added the Maybe in the future It's good, but not now label Feb 5, 2023
@PiDanShouRouZhouXD
Copy link

PiDanShouRouZhouXD commented Jun 17, 2023

提供一个临时的解决方案:
只需要在index.js的743行后加入如下的代码,就能最简单的实现通过token匹配数据库的功能。(前提是你的文件不是压缩包)

ehviewer = book.filepath + "\\.ehviewer"
let fileContent = fs.readFileSync(ehviewer, 'utf-8')
let lines = fileContent.split('\n')
let gallery_token = lines[3]
console.log('token:', gallery_token)
let metadata = await db.get(`SELECT * FROM gallery WHERE token LIKE '${gallery_token}'`);

此外,这段代码没有任何的异常处理,请保证你的所有文件夹内都含有正确的“.ehviewer”文件(

@SchneeHertz SchneeHertz added Todo May be added in the next version and removed Maybe in the future It's good, but not now labels Jun 22, 2023
@SchneeHertz SchneeHertz added Maybe in the future It's good, but not now and removed Todo May be added in the next version labels Jul 10, 2023
@Qinolion
Copy link

如果要自己打包成exe安装包应该怎么弄

@SchneeHertz
Copy link
Owner

如果要自己打包成exe安装包应该怎么弄

git clone之后
npm i
npm run dist

@Qinolion
Copy link

Qinolion commented Jan 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Maybe in the future It's good, but not now
Projects
None yet
Development

No branches or pull requests

4 participants