I'm facing a peculiar issue with using ebook-meta CLI tool to change things like the ePub title, author, and cover.
I have an ePub, let's call it test.epub.
I'm able to successfully open this ePub with the Mac Books app.
Then I run:
Code:
ebook-meta test.epub --authors "new author"
This seems to modify test.epub in place (which is fine).
I try to open test.epub with Mac books app and I get an error: "The operation couldn't be completed. No such file or directory."
Interestingly, I can open the same ePub with the Books app on iOS. It seems like only the Mac Books app has an issue. I've tried opening the ePub on different Mac machines (M1 and Intel) to no avail - same error on all of them.
This issue is not unique to changing the author name. It happens when I try to change title, cover, etc...
When I diff the ePub before and after running it through ebook-meta, I notice ebook-meta makes several changes to the internal files, mostly formatting, but I can't be sure as I haven't looked in depth. It clearly changes much more than the metadata in question. I expect the diff to be a one-line change, but it's far larger.
Two questions to help me further troubleshoot:
1. Is there a simpler mode I can run ebook-meta in so the diff just changes the author name (or title, etc...) but NOTHING else, no formatting, etc...?
2. Right now, ebook-meta changes the file in place. Is there a way to tell the tool to create a new file with the change?
3. Any other tips / advice on why this could be happening? I have to to run ebook-meta on dozens of ePubs and I'm afraid I can't because the resulting ePubs will all be un-openable on my Mac Books app which is what I rely on a lot.
Thanks!