1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00
This commit is contained in:
Escartem
2023-10-04 15:37:40 +02:00
parent bcac3ba467
commit 13790ef6de

View File

@@ -35,9 +35,14 @@ def main():
hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")]
alone_files = [f for f in os.listdir("audio") if f.endswith(".pck") and not os.path.exists(f"patch/{f}.hdiff")]
files = [*hdiff_files, *alone_files]
if len(files) == 0:
print("No files found !")
return
print(f"{len(files)} file(s) to extract")
iteration = 0
for file in files:
try:
iteration += 1
@@ -277,7 +282,8 @@ def main():
print(e)
# all files processed
shutil.rmtree("temp")
if os.path.exists("temp"):
shutil.rmtree("temp")
print("Done extracting everything !")
if __name__ == "__main__":