Quote:
Originally Posted by JimmXinu
That's not a good solution. I've changed it to use the site specific metadata universe and universeUrl. The datum universeHTML will be automatically created. I haven't tested it because I don't have any story URLs with universe. You'll need to add universeHTML to extra_titlepage_entries to see it.
|
The story that started all this,
http://storiesonline.net/s/51245, is in a universe, but it 42 chapters. I had a look through the list of universes and found the the "BOFH" universe - BOFH fanfic, so it is apt for this plugin and proof that there is fanfic for everything. One of the stories is
http://storiesonline.net/s/64407.
I can see why, but, I'm not sure I agree. The site has both universes and series (and series can be ordered or be unordered). Universes can hold individual stories or series. But, there is no way to tell from a story in a series that the series is part of a universe. That means a story will only have one. For me, I suppose I want to get whichever the story has into the series column. Can I do this through the preferences or personal.ini?
For curiosity, I had a look at what is in one of the site generated epubs. For the BOFH story,
http://storiesonline.net/s/64407, the OPF has:
Code:
<meta name="calibre:series" content="BOFH"/>
For a book that is in a series, it also has the series index. So, the site is at least partly treating the universe the same as a series.
Quote:
Added in another new site specific metadatum, notice.
|
Using
http://storiesonline.net/s/51245 (which is also in a universe), I had an error that seems to be related to this. The traceback is:
Code:
Traceback (most recent call last):
File "calibre_plugins.fanfictiondownloader_plugin.dialogs", line 590, in do_loop
File "calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin", line 1068, in prep_download_loop
File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.story", line 542, in formatFileName
File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.story", line 419, in getAllMetadata
File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.story", line 330, in getMetadata
TypeError: sequence item 0: expected string or Unicode, Tag found
Looking at the code, the value for the notice needed to be converted to a string. That was my mistake.
Quote:
I've changed the encoding, but I'm not going to add the universe code with an example story URL to test against.
|
That's fair enough. I'll have a look and see if I can find something suitable for testing.