mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When creating a .pmlz file, compress the .pml
This commit is contained in:
parent
2288b24137
commit
87e89cb28b
@ -68,7 +68,7 @@ class PML2PMLZ(FileTypePlugin):
|
||||
|
||||
of = self.temporary_file('_plugin_pml2pmlz.pmlz')
|
||||
pmlz = zipfile.ZipFile(of.name, 'w')
|
||||
pmlz.write(pmlfile, os.path.basename(pmlfile))
|
||||
pmlz.write(pmlfile, os.path.basename(pmlfile), zipfile.ZIP_DEFLATED)
|
||||
|
||||
pml_img = os.path.splitext(pmlfile)[0] + '_img'
|
||||
i_img = os.path.join(os.path.dirname(pmlfile),'images')
|
||||
|
Loading…
x
Reference in New Issue
Block a user