View Single Post
Old 11-03-2013, 10:28 PM   #2057
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JimmXinu View Post
Add the story back to 'My Library' on storiesonline.net. Go to the page http://storiesonline.net/s/69022 in your browser. Do File->Save Page As and save the HTML page.
If the story is in the persons library, it opens to the last chapter read rather than the chapter list. If you pull the chapter list from the details page, it will work all the time. For the story above, this is http://storiesonline.net/library/storyInfo.php?id=69022.

Just compared the source I sent with what is in the plugin. You dropped the recognition of the details page. And I was getting the chapters from the details page. I based this on the finestories.com adapter. It reads the details page, not the index and it works for stories in the library.

OK, if the story URL ends with ":i", it goes to the index page all the time. So, http://storiesonline.net/s/69022:i would work. But, this URL is not picked up by either adapter. Again, I thought I had this working, but I just tried my code and it isn't. Changing the last part of the pattern to "\d+(\d+|i))?(;\d+)?$" fixes this.

I just noticed both adapters are reading the authors page to get some of the details. It can get it all from the details page. I'll try and have a better look when I get home tonight.
davidfor is offline