mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-30 00:56:13 +13:00
Fixes #2
This commit is contained in:
parent
af31ff9667
commit
24a81960cd
2 changed files with 3 additions and 1 deletions
|
@ -510,7 +510,9 @@ class FimFic2Epub extends Emitter {
|
||||||
html = html.substring(endCatsPos + 6)
|
html = html.substring(endCatsPos + 6)
|
||||||
|
|
||||||
let categories = []
|
let categories = []
|
||||||
|
this.subjects.length = 0
|
||||||
this.subjects.push('Fimfiction')
|
this.subjects.push('Fimfiction')
|
||||||
|
this.subjects.push(this.storyInfo.content_rating_text)
|
||||||
let matchCategory = /<a href="(.*?)" class="(.*?)">(.*?)<\/a>/g
|
let matchCategory = /<a href="(.*?)" class="(.*?)">(.*?)<\/a>/g
|
||||||
for (let c; (c = matchCategory.exec(catsHtml));) {
|
for (let c; (c = matchCategory.exec(catsHtml));) {
|
||||||
let cat = {
|
let cat = {
|
||||||
|
|
|
@ -209,7 +209,7 @@ let dialog = {
|
||||||
m('tr', m('td.section_header', {colspan: 3}, m('b', 'Metadata customization'))),
|
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('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('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', [
|
m('.drop-down-pop-up-footer', [
|
||||||
|
|
Loading…
Reference in a new issue