From 85316dbe8ad06d8c47c16dd4f8abc711a8fab3e0 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Thu, 15 Mar 2018 17:44:15 +0100 Subject: [PATCH] Fix short_description when using cli --- src/cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.js b/src/cli.js index 1a0b983..db919fd 100755 --- a/src/cli.js +++ b/src/cli.js @@ -33,6 +33,7 @@ if (outputStdout) { // use a mock DOM so we can run mithril on the server require('mithril/test-utils/browserMock')(global) +const htmlToText = require('./utils').htmlToText const FimFic2Epub = require('./FimFic2Epub').default const fs = require('fs') const path = require('path') @@ -61,6 +62,7 @@ ffc.fetchMetadata() if (args.author) { ffc.setAuthorName(args.author) } + ffc.storyInfo.short_description = htmlToText(ffc.storyInfo.description) }) .then(ffc.fetchAll.bind(ffc)) .then(ffc.build.bind(ffc))