Quote:
Originally Posted by Analogus
So I would need a function which gives 0 or 1 wether it's an epub or not. Some ideas?
|
Hi there,
If you know the path of the current book, you can get the mime type using
Code:
mime = FileSystem.getMIMEType(path);
If the book is an EPUB, mime will be 'application/epub+zip'.
You can get the path of the current book using
Code:
path = kbook.model.currentBook.media.path;
Hope this helps.
Sincerely,
Ben.