OK, I did have some time. Well, wanted to avoid doing other things
Quote:
Originally Posted by davidfor
StoriesOnline does allow a cover image, but I have only seen them for multi-chapter stories. They are usually displayed on the index page. I don't remember putting any code in to handle it. But, I think the "damned twitter bird" is the twitter icon. Some time recently they added a Twitter function at the end of each story. And it might be at the end of each chapter. That might be seen as the first image. But, I thought the changes you made at about the time the FanFicFare was released removed this.
|
I can't reproduce getting the "damned twitter bird", which I assume is
http://res.storiesonline.net/css/bir.png. I did have a story in my test case that had images and the first was used as the cover. But, that was in the story rather than on the index page as a cover. Getting that image is easy as it is just an img tag on the index page. But, I'm not sure what to do with it so that the FFF sees it as the cover. It is probably obvious, but I can't see it at the moment.
Quote:
The series/universe thing was something I remember putting in and having a bit of trouble with. The complication is that a book could be in a universe (unordered) or a series (ordered). And a series could be in a universe. I thought I handled the three circumstances and allowed the calibre series to be set to either the universe or series name or to "universe.series". But, it sounds like the site has changed the formatting, and the universe/series name isn't being extracted correctly.
|

The site appears to have changed from using HTML entities to using the character. The universe name was split from the description by looking for "& mdash;", but it now has the character. Changing line 262 from:
Code:
universe_name = universe_soup.find('h1', {'id' : 'ptitle'}).text.partition(' —')[0]
to:
Code:
universe_name = universe_soup.find('h1', {'id' : 'ptitle'}).text.partition('—')[0]
will fix it.
I can't reproduce the error fathertyme is seeing with
http://storiesonline.net/s/12057. It might be a difference in options, but I don't know what to change.