mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -458,6 +458,9 @@ class Mobi8Reader(object):
|
|||||||
return os.path.basename(path) == 'debug-raw.html'
|
return os.path.basename(path) == 'debug-raw.html'
|
||||||
|
|
||||||
opf.create_manifest_from_files_in([os.getcwdu()], exclude=exclude)
|
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.create_spine(spine)
|
||||||
opf.set_toc(toc)
|
opf.set_toc(toc)
|
||||||
ppd = self.resc_data.get('page-progression-direction', None)
|
ppd = self.resc_data.get('page-progression-direction', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user