Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix error File not found in the epub and replace file addresses #1394

Open
ebrahimiaval opened this issue Jul 27, 2024 · 0 comments
Open

fix error File not found in the epub and replace file addresses #1394

ebrahimiaval opened this issue Jul 27, 2024 · 0 comments

Comments

@ebrahimiaval
Copy link

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)"
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant