fix
This commit is contained in:
parent
abc855d931
commit
994d3cc105
3
test.py
3
test.py
@ -210,8 +210,7 @@ class comicInfo:
|
||||
# 创建临时文件处理覆盖操作
|
||||
with NamedTemporaryFile(delete=False) as tmp:
|
||||
tmp.close()
|
||||
shutil.move(cbz_path, tmp.name)
|
||||
time.sleep(0.2)
|
||||
os.replace(cbz_path, tmp.name)
|
||||
# 读取原文件并替换 ComicInfo.xml
|
||||
with ZipFile(tmp.name, 'r') as source_zip:
|
||||
with ZipFile(output_path, 'w') as new_zip:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user