Closed Tiffceet closed 2 years ago
>gif hentai doujin
I've just added dev
version artifacts to the releases. So if you're ok with using dev
version you install it (instructions provided).
Just published dev
tag to npm.
You can now use yarn add nhentai-api@dev
.
Also added legacy
tag, with GIF support.
There are some doujins that uses .gif instead of .png / .jpg
This causes issue to getImageUrl(), it will return the wrong url because the image type is undefined
`const { API, } = require('nhentai-api'); const api = new API();
api.getBook(350866).then(book => { console.log(api.getImageURL(book.cover)); // https://t.nhentai.net/galleries/1864957/cover.undefined console.log(api.getImageURL(book.pages[1])); // https://i.nhentai.net/galleries/1864957/2.undefined });`
Suggesting to add GIF ImageType