View Single Post
Old 11-07-2009, 12:40 PM   #90
epstewart
Connoisseur
epstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enough
 
Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
Quote:
Originally Posted by JSWolf View Post
I did remove the DRM from An Echo in the Bone. But it did have a problem. It had two invalid directories in the ePub. So what I have to do was unzip all the files and then put it back together so I could then strip the DRM.
I have been in touch with someone who knows more than I do about the way an ePub file is supposed to be put together. I asked him to look at An Echo in the Bone. He said:

The file is indeed an invalid epub. Two of the entries in the central directory of the epub (zip) file have had a portion of their name field set to all '\0' bytes. This is probably a bug with the software that generated the epub file.

That is exactly what JSWolf found, so I think we can conclude that some Adobe Digital Editions ePubs are improperly constructed zip files. The result is that ineptepub generates an error with them unless the files are unzipped and rezipped. The Mac's Archive Utility unzips them without error, maybe since it simply doesn't check the incorrect filenames.
epstewart is offline   Reply With Quote