mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-28 11:00:30 +12:00
fix remote resources bug
This commit is contained in:
parent
6e24d047d3
commit
ee20ef8b7e
|
@ -4,7 +4,7 @@
|
|||
"name": "fimfic2epub",
|
||||
"short_name": "fimfic2epub",
|
||||
"description": "Improved EPUB exporter for Fimfiction",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
|
||||
"icons": {
|
||||
"128": "icon-128.png"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fimfic2epub",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
|
||||
"author": "djazz",
|
||||
"repository": {
|
||||
|
|
|
@ -137,6 +137,7 @@ class FimFic2Epub extends Emitter {
|
|||
this.pcache.fetchAll = this.fetchMetadata()
|
||||
.then(this.fetchChapters.bind(this))
|
||||
.then(this.fetchCoverImage.bind(this))
|
||||
.then(this.buildChapters.bind(this))
|
||||
.then(this.fetchRemoteFiles.bind(this))
|
||||
.then(() => {
|
||||
this.progress(0, 0.95)
|
||||
|
@ -322,7 +323,6 @@ class FimFic2Epub extends Emitter {
|
|||
this.cachedFile = null
|
||||
this.zip = null
|
||||
|
||||
return this.buildChapters().then(() => {
|
||||
this.replaceRemoteResources()
|
||||
|
||||
this.zip = new JSZip()
|
||||
|
@ -357,7 +357,6 @@ class FimFic2Epub extends Emitter {
|
|||
this.zip.file('OEBPS/' + r.dest, r.data)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// for node, resolve a Buffer, in browser resolve a Blob
|
||||
|
|
Loading…
Reference in a new issue