Minor cleanups in books.js
This commit is contained in:
parent
27eae8860b
commit
60c23f0240
2 changed files with 3 additions and 6 deletions
|
|
@ -1,11 +1,8 @@
|
|||
"use strict";
|
||||
|
||||
// TODO cover
|
||||
|
||||
exports.worm = {
|
||||
startURL: "https://parahumans.wordpress.com/2011/06/11/1-1/",
|
||||
title: "Worm",
|
||||
author: "wildbow",
|
||||
id: "e7f3532d-8db6-4888-be80-1976166b7059",
|
||||
|
||||
// First paragraph of https://parahumans.wordpress.com/about/
|
||||
|
|
@ -16,7 +13,6 @@ exports.worm = {
|
|||
exports.ward = {
|
||||
startURL: "https://www.parahumans.net/2017/09/11/daybreak-1-1/",
|
||||
title: "Ward",
|
||||
author: "wildbow",
|
||||
id: "a6b6b156-2f17-43c0-8bb1-bfa91f3ef62a",
|
||||
|
||||
// Synposis from https://www.parahumans.net/
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ const path = require("path");
|
|||
const cpr = require("util").promisify(require("cpr"));
|
||||
|
||||
const BOOK_PUBLISHER = "Domenic Denicola";
|
||||
const BOOK_AUTHOR = "wildbow";
|
||||
|
||||
const NCX_FILENAME = "toc.ncx";
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ function writeOPF(chapters, contentPath, coverFiles, bookInfo) {
|
|||
<dc:title>${bookInfo.title}</dc:title>
|
||||
<dc:language>en</dc:language>
|
||||
<dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:${bookInfo.id}</dc:identifier>
|
||||
<dc:creator opf:file-as="${bookInfo.author}" opf:role="aut">${bookInfo.author}</dc:creator>
|
||||
<dc:creator opf:file-as="${BOOK_AUTHOR}" opf:role="aut">${BOOK_AUTHOR}</dc:creator>
|
||||
<dc:publisher>${BOOK_PUBLISHER}</dc:publisher>
|
||||
<dc:description>${bookInfo.description}</dc:description>
|
||||
<meta name="cover" content="cover-image"/>
|
||||
|
|
@ -93,7 +94,7 @@ function writeNcx(chapters, contentPath, bookInfo) {
|
|||
</docTitle>
|
||||
|
||||
<docAuthor>
|
||||
<text>${bookInfo.author}</text>
|
||||
<text>${BOOK_AUTHOR}</text>
|
||||
</docAuthor>
|
||||
|
||||
<navMap>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue