This commit is contained in:
daniel-j 2016-08-24 20:18:01 +02:00
parent af31ff9667
commit 24a81960cd
2 changed files with 3 additions and 1 deletions

View file

@ -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 href="(.*?)" class="(.*?)">(.*?)<\/a>/g
for (let c; (c = matchCategory.exec(catsHtml));) {
let cat = {

View file

@ -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', [