Ensure html files have mimetype set to xhtml mimetype when exploding azw3 files, so that check book does not complain about them.

This commit is contained in:
Kovid Goyal 2014-01-04 13:10:54 +05:30
parent 0598a2099f
commit 31c4f65977

View File

@ -458,6 +458,9 @@ class Mobi8Reader(object):
return os.path.basename(path) == 'debug-raw.html'
opf.create_manifest_from_files_in([os.getcwdu()], exclude=exclude)
for entry in opf.manifest:
if entry.mime_type == 'text/html':
entry.mime_type = 'application/xhtml+xml'
opf.create_spine(spine)
opf.set_toc(toc)
ppd = self.resc_data.get('page-progression-direction', None)