From 24a81960cdc53797c02eb9df62da4ce78c5ff82a Mon Sep 17 00:00:00 2001 From: daniel-j Date: Wed, 24 Aug 2016 20:18:01 +0200 Subject: [PATCH] Fixes #2 --- src/FimFic2Epub.js | 2 ++ src/main.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FimFic2Epub.js b/src/FimFic2Epub.js index fda7b90..25f34f7 100644 --- a/src/FimFic2Epub.js +++ b/src/FimFic2Epub.js @@ -510,7 +510,9 @@ class FimFic2Epub extends Emitter { html = html.substring(endCatsPos + 6) let categories = [] + this.subjects.length = 0 this.subjects.push('Fimfiction') + this.subjects.push(this.storyInfo.content_rating_text) let matchCategory = /(.*?)<\/a>/g for (let c; (c = matchCategory.exec(catsHtml));) { let cat = { diff --git a/src/main.js b/src/main.js index 5e9387f..21107f8 100644 --- a/src/main.js +++ b/src/main.js @@ -209,7 +209,7 @@ let dialog = { m('tr', m('td.section_header', {colspan: 3}, m('b', 'Metadata customization'))), m('tr', m('td.label', {style: 'vertical-align: top;'}, 'Categories'), m('td', {colspan: 2}, m('textarea', {rows: 2, config: autosize, onchange: ctrl.setSubjects}, ctrl.subjects().join('\n')), - m(checkbox, {checked: ctrl.joinSubjects(), onchange: m.withAttr('checked', ctrl.joinSubjects)}, 'Join categories into one, separated by commas') + m(checkbox, {checked: ctrl.joinSubjects(), onchange: m.withAttr('checked', ctrl.joinSubjects)}, 'Join categories and separate with commas (for iBooks only)') )) ]), m('.drop-down-pop-up-footer', [