mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 11:44:49 +01:00
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:
parent
0598a2099f
commit
31c4f65977
1 changed files with 3 additions and 0 deletions
|
|
@ -458,6 +458,9 @@ def exclude(path):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue