Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2018, 06:22 AM   #1
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
On The MIME Type of ePUBs

The MIME type of an ePUB file should be application/epub+zip.

You can find non-conforming ePUBs within your library with:
Code:
file --mime-type **/*.epub | grep -v 'application/epub+zip'
This can happen if the mimetype file:
  • Is missing.
  • Isn't the first entry.
  • Is compressed instead of stored.
  • Has extra fields.
  • Contains the wrong MIME type (seems unlikely).

You can solve the problem by unpacking the ePUB and repacking it with:
Code:
[ -e mimetype ] || printf '%s' 'application/epub+zip' > mimetype
zip -X -Z store abc.epub mimetype
zip -r abc.epub . -x mimetype
baskerville is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone try Addr? (Lets you type in the margins of ePubs) Jessica Lares Apple Devices 2 12-13-2014 02:23 AM
Touch Nook STR can't change font type on some epubs? Ferrian Barnes & Noble NOOK 2 05-18-2012 06:29 PM
.MOBI Mime Type NicWest Kindle Formats 1 11-12-2010 06:42 PM
Supporting EML (MIME e-mail) input format? TMF Calibre 2 09-27-2009 05:12 AM
Display File Type and Sort by Type pragmortal Calibre 7 09-21-2009 08:07 PM


All times are GMT -4. The time now is 09:27 AM.


MobileRead.com is a privately owned, operated and funded community.