mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2024-11-05 05:26:09 +06:00
Preserve filename encoding flag when fixing epub archive
This commit is contained in:
parent
52bdbe95c9
commit
ffd79d5fe4
|
@ -153,6 +153,7 @@ class fixZip:
|
|||
nzinfo.internal_attr=zinfo.internal_attr
|
||||
nzinfo.external_attr=zinfo.external_attr
|
||||
nzinfo.create_system=zinfo.create_system
|
||||
nzinfo.flag_bits = zinfo.flag_bits & 0x800 # preserve UTF-8 flag
|
||||
self.outzip.writestr(nzinfo,data)
|
||||
|
||||
self.bzf.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user