HanaDigital / NovelScraper

Download manager & library for translated light novels.
https://discord.gg/Wya4Dst
87 stars 16 forks source link

Fixing missing genre in Novellfull crasing the epub writter. #64

Closed jiskim closed 3 years ago

jiskim commented 3 years ago

i changed the writer of the epub, so that it would check if the author or genre is missing from the novel metadata. if so i default some value.

the epub writer seems to require that we supply those 2 fields, otherwise it will fail silently and keep stuck at 99% when downloading.

jiskim commented 3 years ago

I added also a fix to the box novel scrapper.

it was having some issues getting their new ajax endpoint.

they added an ajax endpoint for the list of chapters and it was crashing the imports, due to not having the latest chapter in the normal html anymore. Due to this i had to add a new function to push instead of get to the endpoint. if you GET then you will only receive the normal webpage; but if you POST the url ajax endpoint then you get the proper list of chapters.

also their server is having certificates issues. i had to add rejectUnauthorized: false so that it stop just crashing at the get of anything

jiskim commented 3 years ago

Fixed the ReadLightnovel changed its domain and all sources url were returning has invalid link.

dr-nyt commented 3 years ago

Thanks for the great pull request, I'll be updating the app soon!