p0ody / ff2ebook

WIP.
http://www.ff2ebook.com
18 stars 2 forks source link

Wattpad not working #41

Closed miraxnair closed 2 years ago

miraxnair commented 3 years ago

Hi! I understand that you are busy but whenever you have time can you look into why downloading from wattpad isn’t working anymore? It just keeps saying failed to get fix infos. The site I’m using is https://ff2.theyoungappy.com/ Thank you.

StarWolf3000 commented 3 years ago

The fork is done by @bastien8060

bastien8060 commented 3 years ago

Let me fix it, I just noticed it stops working. Thanks for the report !

bastien8060 commented 3 years ago

Okay according to the logs, the issue is that the chapters link layout changed on wattpad.com, meaning ff2ebook cannot find them. I'll fix the code to look for the chapters in other way.

bastien8060 commented 3 years ago

Sorry for the delay I took to answer btw, my timezone is quite different ... edit: almost fixed. Fixing the chapters number detection (ff2ebook searching how many chapters there are to fetch) + getting fanfic's title

bastien8060 commented 3 years ago

Update: its now fully working again. You can use any url eg:

It might be down later for a bit, since i will do some server maintenance and add http/2

I think the issue can be closed, but you can leave it open if you wish

miraxnair commented 3 years ago

@bastien8060 Thank you so much!

bastien8060 commented 3 years ago

no problem

bastien8060 commented 3 years ago

Update: it is very fast now. Before each calls where synchronous: it only fetched one chapter at a time. Now it gets all of them at the same time.

The time it took before was 2 seconds times the amount of chapters. Now its 2 seconds for the whole fanfiction.