View Single Post
Old 11-05-2013, 09:59 PM   #2070
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
Oh good grief--storiesonline.net paginates chapters?! That's a whole new level of nuisance. It's a good thing that's already implemented--I don't think I would have had the patience.
Yes, they paginate submitted stories and chapters that are longer than about 50K. finestories.com does the same.
Quote:
Attached is a version that fixes fidofido300's most recent problem. (Which wasn't the same problem from this posted log.)
Ok, it was failing for stories marked as incomplete. All the dates are there in timestamp format followed by a noscript tag and the date. The others use the noscript version. You could replace that line with the following to be consistent with the other dates.

Code:
value = status.findNext('noscript').text
self.story.setMetadata('dateUpdated', makeDate(stripHTML(value), self.dateformat))
Your version is working perfectly with a few tests. I added some incomplete stories to the test.

Whoops just noticed something in the description. They all have a "[" at the end. Replace lines 209-211 (they all start with "desc =") with:

Code:
desc = "%s"%lc4.text
desc = desc[:desc.index("[More")]
davidfor is offline