You are not logged in.
Pages: 1
Hi
I am using the latest beta.
ReNamer cannot recognize epub extension. Its "ëxtension" command renames epub files as zip.
Last edited by narayan (2014-04-27 07:41)
Offline
A Epub file is a ZIP archive with epub extension.
PK xxxx mimetypeapplication/epub+zipPK xxxx META-INF/ PK
Perhaps Denis can recognize "mimetypeapplication/epub+zipPK" within the first 100 bytes?
Because there is a file named "mimetype" with "application/epub+zip" content inside a epub file.
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Indeed, EPUB as well as many other (DOCX, XLSX, etc) file formats are actually ZIP files. You can open them with any file compression tool.
However, as Stefan has noted, we can try using a little binary hint after the usual ZIP file signature:
* "mimetypeapplication/epub+zip" for EPUB
* "[Content_Types].xml" for DOCX/XLSX/PPTX
I've implemented this in v5.75.2 Beta.
Apart from that the only definitive way to correctly distinguish these file types is to extract the content of the ZIP file and match it against appropriate format specification. Perhaps, in a long run, it would be better to incorporate the power of TrID detection kit into the Extension rule.
Offline
I agree!
Thanks for the update!
Offline
Pages: 1