-
Notifications
You must be signed in to change notification settings - Fork 204
Error on Kobo while zipping .epub files #151
Comments
One potential reason was mentioned earlier in the mdbook-epub thread: Michael-F-Bryan/mdbook-epub#28 (comment)
Potentially easy to fix? |
Well actually all the of files are detected as binary files as denoted by the Here are the reasons that lead me to believe that
I do believe this is something we have to address. But that should be an issue in the https://github.com/Michael-F-Bryan/mdbook-epub repository. |
Oh hey, this is a really timely issue. I just encountered the same exact thing with zip-rs here while trying to port external usage of zipinfo is also telling me that archives created with zip-rs (I largely copied the example code) have |
Testing on my Kobo Aura 2, I found that when setting the comment of the zip archive to the empty string, the epub opens fine. You might want to file an issue in the epub-builder library instead. |
On the binary vs text subject: the way zipinfo determines if a file is binary or text is by reading the 'internal attributes' field. This library never sets any flags in this field at the moment, so zipinfo will always determine it to be binary, regardless of the contents. |
Great find! Though I believe that if the zip comment causes issues on some devices it shouldn't be set by default by this library. |
Sorry - long story short, this was entirely a bug on my end. The "zip-rs" comment had nothing to do with corruption here. |
Using this library to zip .epub files results in an error when trying to open on Kobo Clara HD e-reader.
The error only occurs when the files are zipped with this library. When I zip files with system's
zip
command, the resulting .epub is valid.Here is the comparison of the
zip-rs
file vs the system'szip
command file usingzipinfo
on Ubuntu:zip-rs
zip command
The Kobo says the book is "protected by Adobe DRM" but I have been told that this error is kind of a default error and that it doesn't necessarily mean that the book is protected. In my case I did not protected the ebook.
I am not sure as to what causes the issue but I believe it can be one of two things
This library is used by https://github.com/lise-henry/epub-builder/
The issue has been discussed here: Michael-F-Bryan/mdbook-epub#28
The text was updated successfully, but these errors were encountered: