exaltedwombat found a bug in version 0.3 of the epubcheck plugin that causes Sigil to write an ePub with two mimetype entries in the ePub file list. (For more information see
this thread.)
This bug has been fixed in the latest epubcheck plugin version (0.3.5), which has been attached to the first post in this thread.
If you saved an ePub file immediately after running the old epubcheck plugin, you
might have created an ePub file with two mimetype file entries.
You can tell whether ePubs that you've edited are affected by this bug, by opening them with an archive manager, e.g.
7Zip. If you see two mimetype files, your ePub file has been saved with an invalid zip file list and you'll need to re-open and re-save the ePub file(s) with Sigil or Calibre Editor.
I created a batch file that'll help you track down these files.
Prerequisites: Download and install
7Zip (both the GUI version
and the
standalone console version).
1. Extract
7za.exe from
7z1514-extra.7z to a temporary folder.
2. Create a text file with the follwing contents in the same folder:
Code:
FOR /R %%f IN ("*.epub") DO (
echo %%f >> mimetype.log
7za l "%%f" | findstr -N "mimetype" | find /c ":" >> mimetype.log
)
3. Rename the text file to
mimetype.cmd.
4. Copy both
mimetype.cmd and
7za.exe to your ePub folder and double-click
mimetype.cmd. This will recursively search that folder as well as all sub-folders for ePubs and write the results to
mimetype.log. (If you don't want to search subfolders change
FOR /R to
FOR).
5. Open
mimetype.log with a text editor and look for ePub file names followed by a 2, which indicates ePub files with two mimetype file list entries.