mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #5511 (when importing .pml, resulting .pmlz file should have .pml compressed (w/ patch))
This commit is contained in:
commit
f659f06ed5
@ -68,7 +68,7 @@ class PML2PMLZ(FileTypePlugin):
|
|||||||
|
|
||||||
of = self.temporary_file('_plugin_pml2pmlz.pmlz')
|
of = self.temporary_file('_plugin_pml2pmlz.pmlz')
|
||||||
pmlz = zipfile.ZipFile(of.name, 'w')
|
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'
|
pml_img = os.path.splitext(pmlfile)[0] + '_img'
|
||||||
i_img = os.path.join(os.path.dirname(pmlfile),'images')
|
i_img = os.path.join(os.path.dirname(pmlfile),'images')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user