epub.js
epub.js copied to clipboard
fix error File not found in the epub and replace file addresses
How can I map the address of my Audio path before this error occurs and replace them with relative addresses? My audio files do not exist inside the ePub file and I have to replace them with real addresses during processing. How is this possible?
{
"message": "File not found in the epub: /audio/part0006.mp3",
"stack": "Error\n at Archive.createUrl (webpack-internal:///./node_modules/epubjs/src/archive.js:235:13)\n at Resources.createUrl (webpack-internal:///./node_modules/epubjs/src/resources.js:123:33)\n at eval (webpack-internal:///./node_modules/epubjs/src/resources.js:155:17)\n at Array.map (<anonymous>)\n at Resources.replacements (webpack-internal:///./node_modules/epubjs/src/resources.js:152:32)\n at Book.replacements (webpack-internal:///./node_modules/epubjs/src/book.js:710:25)\n at Book.unpack (webpack-internal:///./node_modules/epubjs/src/book.js:520:9)\n at eval (webpack-internal:///./node_modules/epubjs/src/book.js:341:17)"
}