mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR wip tweak_epub
This commit is contained in:
parent
58fa93c903
commit
cec2f873cb
@ -117,7 +117,7 @@ class TweakEpub(QDialog, Ui_Dialog):
|
|||||||
# Write mimetype
|
# Write mimetype
|
||||||
zf.write(os.path.join(self._exploded,'mimetype'), 'mimetype', compress_type=ZIP_STORED)
|
zf.write(os.path.join(self._exploded,'mimetype'), 'mimetype', compress_type=ZIP_STORED)
|
||||||
# Write everything else
|
# Write everything else
|
||||||
exclude_files = ['.DS_Store','mimetype','iTunesMetadata.plist']
|
exclude_files = ['.DS_Store','mimetype','iTunesMetadata.plist','rebuilt.epub']
|
||||||
for root, dirs, files in os.walk(self._exploded):
|
for root, dirs, files in os.walk(self._exploded):
|
||||||
for fn in files:
|
for fn in files:
|
||||||
if fn in exclude_files:
|
if fn in exclude_files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user