View Single Post
Old 06-11-2017, 02:48 PM   #2203
bugstomper
Member
bugstomper began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jun 2017
Device: kindle
Quote:
Originally Posted by JimmXinu View Post
I had to stop and think about it for a while, but in point of fact, there is!
That is so cool! Even cooler, as I looked at the adapters I could see that it would be almost as easy to write my own adapter for the site based on the ones you have. The only question I am left with about it is that every adapter I have looked at assumes that the first URL it looks at contains somewhere a list of links to every chapter in the story. The story I am looking at has no such index page, only prev and next links on each chapter. Is there any example of an adapter that gets the chapter links as it iterates through the chapters or is it a requirement that a site has something that lists all chapters in one place?

I guess I can write something that generates all the chapter links and use it with your test site adapter or an adapter that I write. Or even override extractChapterAndMetadata to read all the chapters and then read all of them again in each call to getChapterText. Is that what would be necessary? Are there any adapters that do something similar whose code I can look at?

Last edited by bugstomper; 06-11-2017 at 02:55 PM.
bugstomper is offline   Reply With Quote