Quote:
Originally Posted by JimmXinu
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")]