# Make a non-solid archive with all the text and metadata at default compression. You can also add config.txt if you don't care about your computer and user names being published or you don't use full paths so that they're not stored in it.
compressed=subprocess.call(
[
@ -161,7 +168,7 @@ def main():
"a",
"-ms=off",
"--",
f"../{prefix}-history.xml.7z.tmp",
str(pathHistoryTmp),
f"{prefix}-history.xml",
f"{prefix}-titles.txt",
"index.html",
@ -172,30 +179,30 @@ def main():
shell=False,
)
ifcompressed<2:
subprocess.call(
"mv"
+" ../%s-history.xml.7z.tmp ../%s-history.xml.7z"
%(prefix,prefix),
shell=True,
)
pathHistoryTmp.rename(pathHistoryFinal)
else:
print("ERROR: Compression failed, will have to retry next time")
# Now we add the images, if there are some, to create another archive, without recompressing everything, at the min compression rate, higher doesn't compress images much more.