Quote:
Originally Posted by kovidgoyal
Umm from what I remember of the epub spec, an epub zip file stores metadata in only one place (an opf file) and a well formed epub document should specify whether it contains dtbook or xhtml. In any case that is really easy to detect by just look at the XML headers.
|
The mimetype tells you all you need to know and it is clear text at the beginning of the zip file. You don't need to unzip it as the mimetype is not compressed. Cat, more, head will do the trick or just open the file and read it starting in byte 30.
Dale