-
Notifications
You must be signed in to change notification settings - Fork 20
Unzipper misses entry #1
Comments
The likely explanation is that the code was zipped with the standard zip library in Java, which doesn't create spec compliant Zip files, and in turn not valid EPUB files. But most people think that a .zip is a .zip and distribute corrupted EPUBs. I'm not sure if this is the case with the EPUB file you are trying. I could investigate further if you could provide me with a reproducable test case or the file itself. |
Maybe you could point me to a free epub so that i can check it.. The one i'm working with is the one bundled with epubjs called Emma_Jane-Austen.epub, can be checked out from svn checkout http://epub-tools.googlecode.com/svn/trunk/epubtools/epubjs epubjs the zipper in rePublish doesnt have any troubles with it.. Though your unzipper looks far more suffisticated.. I'm storing the epub files in google app engines app store if that could have some effect.. ? im serving with content-type="application/zip" |
All the books on http://www.epubbooks.com/ comply to the standard, as far as I know. I'll investigate the epub from the svn repo you pointed to. |
Hmm.. I think this have something to do with app engines blobstore it must do something when the file is uploaded or when the file is served.. Would really like to solve this one.. Is it possible to make you try and load a epub with xmlhttprequest from blobstore for me, and maybe tell me whats wrong ? |
it seems the problem just appears using the minified version of js-unzip: js-unzip.min.js |
I've reproduced the error now. A fix is imminent. |
I tried the latest version of js-unzip.js and it fails processing this file: var unzipper = new JSUnzip(httpResponseData); An older version of js-unzip.js used to read that file properly (provided that the & 0xff trick was used). |
Any updates on the "imminent" fix for the missing entries? |
Hey! I just deprecated this project. I was looking into fixing bugs and updating it, but I found a much better alternative that didn't exist when I created this project. Check it out :) |
Hi august.. I have a problem.. For some unexplained reason the unzipper misses an entry in my epub file.. It reads the mimetype and the META-INF dir just fine, but when it comes to the dir OEBPS it just skips it and thus js-epub fails.. I hope there is a logical explanation hope you can help
Regards
Jakob
The text was updated successfully, but these errors were encountered: